summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-12 17:42:04 +0000
committertron <tron@openttd.org>2006-03-12 17:42:04 +0000
commitb05a98fdfa3db1171064aa59c401dcad1798b7ae (patch)
tree92107719a9ce6eb371c4b48b27ef13761bc42120 /aircraft_cmd.c
parent12d252d9bd7ffee83c4be5162cd506bda1070020 (diff)
downloadopenttd-b05a98fdfa3db1171064aa59c401dcad1798b7ae.tar.xz
(svn r3832) Replace some magic numbers by (Diag)Direction enums
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 42000164b..8d07cb0dc 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -110,7 +110,7 @@ void DrawAircraftEngine(int x, int y, EngineID engine, uint32 image_ormod)
int sprite = (6 + _aircraft_sprite[spritenum]);
if (is_custom_sprite(spritenum)) {
- sprite = GetCustomVehicleIcon(engine, 6);
+ sprite = GetCustomVehicleIcon(engine, DIR_W);
if (!sprite)
spritenum = orig_aircraft_vehicle_info[engine - AIRCRAFT_ENGINES_INDEX].image_index;
}