summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-29 15:12:40 +0000
committertron <tron@openttd.org>2005-01-29 15:12:40 +0000
commit97ae59fe1a0248b95dbfff27f84cfeb87742f050 (patch)
treee38584a427c9b3f39a3b8dc39ada303239edb4fa /disaster_cmd.c
parent797355cb7ea1e4e33b20a64bdb3de6b1a492eeab (diff)
downloadopenttd-97ae59fe1a0248b95dbfff27f84cfeb87742f050.tar.xz
(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.
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index bd3955a9c..f31487de1 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -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;