summaryrefslogtreecommitdiff
path: root/ship_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 /ship_cmd.c
parenteeb5bf41a152087031b0764d5d3b2783922b70ae (diff)
downloadopenttd-00cf5c9acf8f4a1a029d2d28c15b7be7c33200cf.tar.xz
(svn r3832) Replace some magic numbers by (Diag)Direction enums
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index 607dc152c..f75b8eef8 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -33,7 +33,7 @@ void DrawShipEngine(int x, int y, EngineID engine, uint32 image_ormod)
int spritenum = ShipVehInfo(engine)->image_index;
if (is_custom_sprite(spritenum)) {
- int sprite = GetCustomVehicleIcon(engine, 6);
+ int sprite = GetCustomVehicleIcon(engine, DIR_W);
if (sprite != 0) {
DrawSprite(sprite | image_ormod, x, y);