summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 9ffc4a235..129e22c28 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -258,8 +258,8 @@ void GenerateUnmovables(void)
return;
/* add radio tower */
- i = 1000;
- j = 40; // limit of 40 radio towers per world.
+ i = ScaleByMapSize(1000);
+ j = ScaleByMapSize(40); // maximum number of radio towers on the map
do {
r = Random();
tile = r % MapSize();
@@ -280,7 +280,7 @@ void GenerateUnmovables(void)
return;
/* add lighthouses */
- i = (Random()&3) + 7;
+ i = ScaleByMapSize1D((Random() & 3) + 7);
do {
restart:
r = Random();