summaryrefslogtreecommitdiff
path: root/ship_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 /ship_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 'ship_cmd.c')
-rw-r--r--ship_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index cc14449c4..ac67056ca 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -39,7 +39,7 @@ void DrawShipEngine(int x, int y, int engine, uint32 image_ormod)
DrawSprite(sprite | image_ormod, x, y);
return;
}
- spritenum = _engine_original_sprites[engine];
+ spritenum = orig_ship_vehicle_info[engine - SHIP_ENGINES_INDEX].image_index;
}
DrawSprite((6 + _ship_sprites[spritenum]) | image_ormod, x, y);
}
@@ -52,7 +52,7 @@ int GetShipImage(const Vehicle *v, byte direction)
int sprite = GetCustomVehicleSprite(v, direction);
if (sprite) return sprite;
- spritenum = _engine_original_sprites[v->engine_type];
+ spritenum = orig_ship_vehicle_info[v->engine_type - SHIP_ENGINES_INDEX].image_index;
}
return _ship_sprites[spritenum] + direction;
}