forked from mirror/OpenTTD
(svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.
This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name.
This commit is contained in:
@@ -19,7 +19,7 @@ static void DisasterClearSquare(TileIndex tile)
|
||||
if (!EnsureNoVehicle(tile))
|
||||
return;
|
||||
|
||||
switch (TileType(tile)) {
|
||||
switch (GetTileType(tile)) {
|
||||
case MP_RAILWAY:
|
||||
if (IS_HUMAN_PLAYER(_map_owner[tile])) DoClearSquare(tile);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user