diff options
author | tron <tron@openttd.org> | 2006-03-26 19:20:15 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-26 19:20:15 +0000 |
commit | c40740e058983e02912d7844a64f0c2568df7b28 (patch) | |
tree | ab641b54ed908fa761cf34615a8966e70f7e78d1 /aircraft_gui.c | |
parent | 3ecd8bd2eec6fdbaeb71b88b1b9a7e7cbcef6681 (diff) | |
download | openttd-c40740e058983e02912d7844a64f0c2568df7b28.tar.xz |
(svn r4120) Use the new station functions where appropriate
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index bed7ace18..60af41598 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -502,9 +502,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) uint32 disabled = 1 << 8; StringID str; - if (v->vehstatus & VS_STOPPED && IsAircraftHangarTile(v->tile)) { - disabled = 0; - } + if (v->vehstatus & VS_STOPPED && IsHangarTile(v->tile)) disabled = 0; if (v->owner != _local_player) disabled |= 1 << 8 | 1 << 7; w->disabled_state = disabled; @@ -1033,7 +1031,7 @@ static void PlayerAircraftWndProc(Window *w, WindowEvent *e) DrawVehicleProfitButton(v, x, y + 13); SetDParam(0, v->unitnumber); - if (IsAircraftHangarTile(v->tile) && (v->vehstatus & VS_HIDDEN)) { + if (IsHangarTile(v->tile) && v->vehstatus & VS_HIDDEN) { str = STR_021F; } else { str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2; @@ -1096,7 +1094,7 @@ static void PlayerAircraftWndProc(Window *w, WindowEvent *e) tile = _last_built_aircraft_depot_tile; do { - if (IsAircraftHangarTile(tile) && IsTileOwner(tile, _local_player)) { + if (IsHangarTile(tile) && IsTileOwner(tile, _local_player)) { ShowAircraftDepotWindow(tile); ShowBuildAircraftWindow(tile); return; |