summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-11-12 17:16:13 +0000
committerdarkvater <darkvater@openttd.org>2004-11-12 17:16:13 +0000
commite7441c39e32500b99b15cc51838e77f06a797db5 (patch)
tree7fdff3a03c500414392baff12749254cb80782d6 /ship_cmd.c
parentacaff32984e0a678055811c5c9f0c7ae9cf6d958 (diff)
downloadopenttd-e7441c39e32500b99b15cc51838e77f06a797db5.tar.xz
(svn r546) -newgrf: Use GetCustomVehicleIcon() for fetching sprites for vehicle selection dialogs. (Idea by octo, done by pasky).
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 1cc53d45c..5891fd2bf 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -24,7 +24,7 @@ void DrawShipEngine(int x, int y, int engine, uint32 image_ormod)
int spritenum = ship_vehicle_info(engine).image_index;
if (is_custom_sprite(spritenum)) {
- int sprite = GetCustomEngineSprite(engine, 0xffff, CID_PURCHASE, 0, 0, 6);
+ int sprite = GetCustomVehicleIcon(engine, 6);
if (sprite) {
DrawSprite(sprite | image_ormod, x, y);