File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ let add_mountains_list r area =
63
63
match area with
64
64
| EastUS -> 157 - y/ 3
65
65
| WestUS ->
66
- if y mod 4 = 0 && y < = 144 && y < = 50 then
66
+ if y mod 4 = 0 && y < = 144 && y > = 50 then
67
67
y / 5 + 36
68
68
else
69
69
y / 5 + 96
@@ -73,12 +73,13 @@ let add_mountains_list r area =
73
73
let delta_x = Random. int 100 r in
74
74
(* Bring closer to 0 *)
75
75
let x = if x > = 0 then x - delta_x else x + delta_x in
76
- let a, b = match area with
77
- | EastUS -> (x * 200 , 400 - y)
78
- | WestUS -> (x * 32 , 200 - formula)
76
+ let x = match area with
77
+ | EastUS ->
78
+ (200 * x) / (400 - y) + formula
79
+ | WestUS ->
80
+ (32 * x) / (200 - formula) + formula
79
81
| _ -> assert false
80
82
in
81
- let x = a / b + formula in
82
83
let x, y =
83
84
if y < 80 then
84
85
let y = y - Random. int 35 r in (* move up *)
You can’t perform that action at this time.
0 commit comments