summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-18 01:26:23 +0000
committersmatz <smatz@openttd.org>2009-05-18 01:26:23 +0000
commit0af27062c4d17148f357c0da1f8b9ce996601463 (patch)
tree1d4e22ed82a0995464f2789b1fd4c47ea8609e21 /src/water_cmd.cpp
parentd1f9a90d3217709903530e58a641c18d61c96918 (diff)
downloadopenttd-0af27062c4d17148f357c0da1f8b9ce996601463.tar.xz
(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile()
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 4bc5a26de..b4a67024a 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -434,7 +434,7 @@ static bool IsWateredTile(TileIndex tile, Direction from)
case MP_RAILWAY:
if (GetRailGroundType(tile) == RAIL_GROUND_WATER) {
- assert(IsPlainRailTile(tile));
+ assert(IsPlainRail(tile));
switch (GetTileSlope(tile, NULL)) {
case SLOPE_W: return (from == DIR_SE) || (from == DIR_E) || (from == DIR_NE);
case SLOPE_S: return (from == DIR_NE) || (from == DIR_N) || (from == DIR_NW);
@@ -910,7 +910,7 @@ void DoFloodTile(TileIndex target)
/* make coast.. */
switch (GetTileType(target)) {
case MP_RAILWAY: {
- if (!IsPlainRailTile(target)) break;
+ if (!IsPlainRail(target)) break;
FloodVehicles(target);
flooded = FloodHalftile(target);
break;
@@ -967,7 +967,7 @@ static void DoDryUp(TileIndex tile)
switch (GetTileType(tile)) {
case MP_RAILWAY:
- assert(IsPlainRailTile(tile));
+ assert(IsPlainRail(tile));
assert(GetRailGroundType(tile) == RAIL_GROUND_WATER);
RailGroundType new_ground;