diff options
author | tron <tron@openttd.org> | 2005-01-29 15:12:40 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-29 15:12:40 +0000 |
commit | 97ae59fe1a0248b95dbfff27f84cfeb87742f050 (patch) | |
tree | e38584a427c9b3f39a3b8dc39ada303239edb4fa /water_cmd.c | |
parent | 797355cb7ea1e4e33b20a64bdb3de6b1a492eeab (diff) | |
download | openttd-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 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/water_cmd.c b/water_cmd.c index 082d50bce..5f5a4c59f 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -320,7 +320,7 @@ static bool IsWateredTile(TileIndex tile) { byte m5 = _map5[tile]; - switch (TileType(tile)) { + switch (GetTileType(tile)) { case MP_WATER: // true, if not coast/riverbank return m5 != 1; @@ -502,7 +502,7 @@ static void TileLoopWaterHelper(TileIndex tile, const TileIndexDiffC *offs) if (TileHeight(TILE_ADD(tile, ToTileIndexDiff(offs[3]))) != 0 || TileHeight(TILE_ADD(tile, ToTileIndexDiff(offs[4]))) != 0) { // make coast.. - switch (TileType(target)) { + switch (GetTileType(target)) { case MP_RAILWAY: { uint slope = GetTileSlope(target, NULL); byte tracks = _map5[target] & 0x3F; |