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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user