diff options
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -698,7 +698,7 @@ static void DoDrawVehicle(const Vehicle *v) if (v->vehstatus & VS_DISASTER) { MAKE_TRANSPARENT(image); } else if (v->vehstatus & VS_DEFPAL) { - image |= (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : SPRITE_PALETTE(PLAYER_SPRITE_COLOR(v->owner)); + image |= (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); } AddSortableSpriteToDraw(image, v->x_pos + v->x_offs, v->y_pos + v->y_offs, @@ -2040,6 +2040,12 @@ UnitID GetFreeUnitNumber(byte type) return unit; } +// XXX Temporary stub -- will be expanded +PalSpriteID GetEngineColourMap(PlayerID player) +{ + return SPRITE_PALETTE(PLAYER_SPRITE_COLOR(player)); +} + // Save and load of vehicles const SaveLoad _common_veh_desc[] = { SLE_VAR(Vehicle,subtype, SLE_UINT8), |