summaryrefslogtreecommitdiff
path: root/train_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 /train_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 'train_cmd.c')
-rw-r--r--train_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 7d6f55151..2d28ab63c 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -174,7 +174,7 @@ void DrawTrainEngine(int x, int y, int engine, uint32 image_ormod)
uint32 image = 0;
if (is_custom_sprite(img)) {
- image = GetCustomEngineSprite(engine, -1, CID_PURCHASE, 0, 0, 6);
+ image = GetCustomVehicleIcon(engine, 6);
if (!image) img = _engine_original_sprites[engine];
}
if (!image) {
@@ -186,7 +186,7 @@ void DrawTrainEngine(int x, int y, int engine, uint32 image_ormod)
x += 15;
image = 0;
if (is_custom_sprite(img)) {
- image = GetCustomEngineSprite(engine, -1, CID_PURCHASE, 0, 0, 2);
+ image = GetCustomVehicleIcon(engine, 2);
if (!image) img = _engine_original_sprites[engine];
}
if (!image) {