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
commitfbf06041ca6ae5a7429ba7342480fca25ab442ed (patch)
tree95e2e84c3e59ea54f0c38d658b37ca313bc134f9 /aircraft_cmd.c
parent2314431a596c25b7e48cfbc7dda452c66cd5ca32 (diff)
downloadopenttd-fbf06041ca6ae5a7429ba7342480fca25ab442ed.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);