diff options
author | tron <tron@openttd.org> | 2006-03-08 06:55:33 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-08 06:55:33 +0000 |
commit | 8cfcdaa733684b00500f7811087312e6d8e60bc0 (patch) | |
tree | 5dc0e72ac096a8404e81f92e3e1480cb29c96061 /aircraft_gui.c | |
parent | 3027b8673e31b52f50201e9571612a946cb3aade (diff) | |
download | openttd-8cfcdaa733684b00500f7811087312e6d8e60bc0.tar.xz |
(svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index 3a78c2134..398bb1fc9 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -65,7 +65,7 @@ void DrawAircraftPurchaseInfo(int x, int y, EngineID engine_number) static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection) { PalSpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); - DrawSprite(GetAircraftImage(v, 6) | pal, x + 25, y + 10); + DrawSprite(GetAircraftImage(v, DIR_W) | pal, x + 25, y + 10); if (v->subtype == 0) DrawSprite(SPR_ROTOR_STOPPED, x + 25, y + 5); if (v->index == selection) { DrawFrameRect(x - 1, y - 1, x + 58, y + 21, 0xF, FR_BORDERONLY); @@ -730,7 +730,7 @@ static void AircraftDepotClickAircraft(Window *w, int x, int y) if (v != NULL) { WP(w,traindepot_d).sel = v->index; SetWindowDirty(w); - SetObjectToPlaceWnd(GetVehiclePalette(v) | GetAircraftImage(v, 6), 4, w); + SetObjectToPlaceWnd(GetVehiclePalette(v) | GetAircraftImage(v, DIR_W), 4, w); } break; |