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
commit00cf5c9acf8f4a1a029d2d28c15b7be7c33200cf (patch)
tree92107719a9ce6eb371c4b48b27ef13761bc42120 /aircraft_cmd.c
parenteeb5bf41a152087031b0764d5d3b2783922b70ae (diff)
downloadopenttd-00cf5c9acf8f4a1a029d2d28c15b7be7c33200cf.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;
}