unmovable_cmd.c
changeset 2051 44b6b091beb3
parent 2049 ad0d49c916d4
child 2148 47ba4a1b1c3b
--- a/unmovable_cmd.c	Wed Jul 13 18:46:51 2005 +0000
+++ b/unmovable_cmd.c	Wed Jul 13 19:51:31 2005 +0000
@@ -347,10 +347,7 @@
 	i = ScaleByMapSize(1000);
 	j = ScaleByMapSize(40); // maximum number of radio towers on the map
 	do {
-		r = Random();
-		tile = r % MapSize();
-//		TILE_MASK seems to be not working correctly. Radio masts accumulate in one area.
-//		tile = TILE_MASK(r);
+		tile = RandomTile();
 		if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h >= 32) {
 			if(!checkRadioTowerNearby(tile))
 				continue;