1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 05:59:10 +00:00

(svn r2990) Remove _engine_original_sprites and replace all uses with references to our (new) original engine/vehicle tables.

This commit is contained in:
2005-09-26 19:01:49 +00:00
parent 2314431a59
commit fbf06041ca
6 changed files with 9 additions and 27 deletions

View File

@@ -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;
}