equal
deleted
inserted
replaced
22 void DrawShipEngine(int x, int y, int engine, uint32 image_ormod) |
22 void DrawShipEngine(int x, int y, int engine, uint32 image_ormod) |
23 { |
23 { |
24 int spritenum = ship_vehicle_info(engine).image_index; |
24 int spritenum = ship_vehicle_info(engine).image_index; |
25 |
25 |
26 if (is_custom_sprite(spritenum)) { |
26 if (is_custom_sprite(spritenum)) { |
27 int sprite = GetCustomEngineSprite(engine, 0xffff, CID_PURCHASE, 0, 0, 6); |
27 int sprite = GetCustomVehicleIcon(engine, 6); |
28 |
28 |
29 if (sprite) { |
29 if (sprite) { |
30 DrawSprite(sprite | image_ormod, x, y); |
30 DrawSprite(sprite | image_ormod, x, y); |
31 return; |
31 return; |
32 } |
32 } |