mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 06:59:10 +00:00
(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user