(svn r3701) [2cc] move vehicle/engine palette functions out of header file and document the remaining definitions

This commit is contained in:
peter1138
2006-03-01 17:35:01 +00:00
parent 2e684c3537
commit 24217d5c8d
2 changed files with 24 additions and 13 deletions

View File

@@ -2041,11 +2041,21 @@ UnitID GetFreeUnitNumber(byte type)
}
// XXX Temporary stub -- will be expanded
PalSpriteID GetEngineColourMap(PlayerID player)
static PalSpriteID GetEngineColourMap(PlayerID player)
{
return SPRITE_PALETTE(PLAYER_SPRITE_COLOR(player));
}
PalSpriteID GetEnginePalette(EngineID engine_type, PlayerID player)
{
return GetEngineColourMap(player);
}
PalSpriteID GetVehiclePalette(const Vehicle *v)
{
return GetEngineColourMap(v->owner);
}
// Save and load of vehicles
const SaveLoad _common_veh_desc[] = {
SLE_VAR(Vehicle,subtype, SLE_UINT8),