clear_cmd.c
changeset 2051 e369160ce2f3
parent 2049 538e73c53f54
child 2140 a04d0142ad65
--- a/clear_cmd.c	Wed Jul 13 18:46:51 2005 +0000
+++ b/clear_cmd.c	Wed Jul 13 19:51:31 2005 +0000
@@ -774,7 +774,7 @@
 	/* add hills */
 	i = ScaleByMapSize((Random() & 0x3FF) + 0x400);
 	do {
-		tile = TILE_MASK(Random());
+		tile = RandomTile();
 		if (IsTileType(tile, MP_CLEAR))
 			_m[tile].m5 = (byte)((_m[tile].m5 & ~(3<<2)) | (1<<2));
 	} while (--i);
@@ -783,7 +783,7 @@
 	i = ScaleByMapSize((Random() & 0x7F) + 0x80);
 	do {
 		r = Random();
-		tile = TILE_MASK(r);
+		tile = RandomTileSeed(r);
 		if (IsTileType(tile, MP_CLEAR)) {
 			j = ((r >> 16) & 0xF) + 5;
 			for(;;) {