1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 13:09:15 +00:00

(svn r3832) Replace some magic numbers by (Diag)Direction enums

This commit is contained in:
tron
2006-03-12 17:42:04 +00:00
parent 12d252d9bd
commit b05a98fdfa
4 changed files with 14 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ void DrawShipEngine(int x, int y, EngineID engine, uint32 image_ormod)
int spritenum = ShipVehInfo(engine)->image_index;
if (is_custom_sprite(spritenum)) {
int sprite = GetCustomVehicleIcon(engine, 6);
int sprite = GetCustomVehicleIcon(engine, DIR_W);
if (sprite != 0) {
DrawSprite(sprite | image_ormod, x, y);