summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-18 12:36:08 +0000
committeryexo <yexo@openttd.org>2010-01-18 12:36:08 +0000
commitbcec00fdbd97f2d9efb218084bbfe3ec16be920e (patch)
tree700476e538895b4fa18d14a8315754e05ce6fa14 /src/water_cmd.cpp
parentab68f08886743fd32ac52bdc666cbf2da9b53287 (diff)
downloadopenttd-bcec00fdbd97f2d9efb218084bbfe3ec16be920e.tar.xz
(svn r18858) -Codechange: use IsAirportTile where possible
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index df8c6221c..03db78f15 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -724,7 +724,7 @@ static void FloodVehicles(TileIndex tile)
{
byte z = 0;
- if (IsTileType(tile, MP_STATION) && IsAirport(tile)) {
+ if (IsAirportTile(tile)) {
const Station *st = Station::GetByTile(tile);
const AirportSpec *as = st->GetAirportSpec();
z = 1 + st->Airport()->delta_z;
@@ -773,7 +773,7 @@ static void FloodVehicle(Vehicle *v)
/* Crashing aircraft are always at z_pos == 1, never on z_pos == 0,
* because that's always the shadow. Except for the heliport, because
* that station has a big z_offset for the aircraft. */
- if (!IsTileType(v->tile, MP_STATION) || !IsAirport(v->tile) || GetTileMaxZ(v->tile) != 0) return;
+ if (!IsAirportTile(v->tile) || GetTileMaxZ(v->tile) != 0) return;
const Station *st = Station::GetByTile(v->tile);
const AirportFTAClass *airport = st->Airport();