diff -r 69cdde904bb5 -r c3473d1fb81f vehicle.c --- a/vehicle.c Mon Feb 20 01:36:48 2006 +0000 +++ b/vehicle.c Mon Feb 20 09:26:07 2006 +0000 @@ -698,7 +698,7 @@ 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 @@ 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),