File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ 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
67
- y / 5 + 96
68
- else
66
+ if y mod 4 = 0 && y < = 144 && y < = 50 then
69
67
y / 5 + 36
68
+ else
69
+ y / 5 + 96
70
70
| _ -> assert false
71
71
in
72
72
let x = Random. int 200 r - 100 in (* -100 to 99 *)
@@ -85,7 +85,7 @@ let add_mountains_list r area =
85
85
let x =
86
86
match area with
87
87
| WestUS -> x (* check *)
88
- | EastUS -> x + 47 - 2 * y / 3
88
+ | EastUS -> x + 47 - ( 2 * y) / 3
89
89
| _ -> assert false
90
90
in x, y
91
91
else
@@ -128,11 +128,11 @@ let add_mountains_list r area =
128
128
| EastUS ->
129
129
let y = y + 38 in (* move down *)
130
130
if y < = 191 then
131
- create_range x y mountains
131
+ create_range x y acc
132
132
else
133
- mountains
133
+ acc
134
134
| WestUS ->
135
- create_range x y mountains
135
+ create_range x y acc
136
136
| _ -> assert false
137
137
in
138
138
extra_range_loop (j+ 1 ) acc
You can’t perform that action at this time.
0 commit comments