ai.c
changeset 1576 cbe6fd677ef4
parent 1562 20af59a8bc3b
child 1640 e704d4b44380
--- a/ai.c	Sat Mar 26 21:22:29 2005 +0000
+++ b/ai.c	Sun Mar 27 00:28:14 2005 +0000
@@ -3640,7 +3640,7 @@
 
 }
 
-static void AiRemovePlayerRailOrRoad(Player *p, uint tile)
+static void AiRemovePlayerRailOrRoad(Player *p, TileIndex tile)
 {
 	byte m5;
 
@@ -3758,10 +3758,11 @@
 
 static void AiStateRemoveTrack(Player *p)
 {
-	int num = 1000;
+	/* Was 1000 for standard 8x8 maps. */
+	int num = MapSizeX() * 4;
 
 	do {
-		uint tile = ++p->ai.state_counter;
+		TileIndex tile = ++p->ai.state_counter;
 
 		// Iterated all tiles?
 		if (tile >= MapSize()) {