summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-26 19:01:49 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-26 19:01:49 +0000
commit9e20ae42229a0bb00e4fe6875ff133421445624b (patch)
tree95e2e84c3e59ea54f0c38d658b37ca313bc134f9 /aircraft_cmd.c
parentaac5e2c1316e130dbba2af1da340249f7fe931b5 (diff)
downloadopenttd-9e20ae42229a0bb00e4fe6875ff133421445624b.tar.xz
(svn r2990) Remove _engine_original_sprites and replace all uses with references to our (new) original engine/vehicle tables.
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 14379d5b2..69b008be7 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -97,7 +97,7 @@ int GetAircraftImage(const Vehicle *v, byte direction)
int sprite = GetCustomVehicleSprite(v, direction);
if (sprite) return sprite;
- spritenum = _engine_original_sprites[v->engine_type];
+ spritenum = orig_aircraft_vehicle_info[v->engine_type - AIRCRAFT_ENGINES_INDEX].image_index;
}
return direction + _aircraft_sprite[spritenum];
}
@@ -110,7 +110,7 @@ void DrawAircraftEngine(int x, int y, int engine, uint32 image_ormod)
if (is_custom_sprite(spritenum)) {
sprite = GetCustomVehicleIcon(engine, 6);
if (!sprite)
- sprite = _engine_original_sprites[engine];
+ spritenum = orig_aircraft_vehicle_info[engine - AIRCRAFT_ENGINES_INDEX].image_index;
}
DrawSprite(sprite | image_ormod, x, y);