From f94c83a3874c292ae0d90a7819c971e4bc7aebad Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 21 Jan 2010 01:38:13 +0000 Subject: (svn r18872) -Codechange: introduce PaletteID and use it --- src/station_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 1a0caa1e9..37746da54 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2325,7 +2325,7 @@ static void DrawTile_Station(TileInfo *ti) const StationSpec *statspec = NULL; Owner owner = GetTileOwner(ti->tile); - SpriteID palette; + PaletteID palette; if (Company::IsValidID(owner)) { palette = COMPANY_SPRITE_COLOUR(owner); } else { @@ -2430,7 +2430,7 @@ static void DrawTile_Station(TileInfo *ti) } } else { SpriteID image = t->ground.sprite; - SpriteID pal = t->ground.pal; + PaletteID pal = t->ground.pal; if (HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE)) { image += GetCustomStationGroundRelocation(statspec, st, ti->tile); image += custom_ground_offset; @@ -2465,7 +2465,7 @@ static void DrawTile_Station(TileInfo *ti) void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image) { int32 total_offset = 0; - SpriteID pal = COMPANY_SPRITE_COLOUR(_local_company); + PaletteID pal = COMPANY_SPRITE_COLOUR(_local_company); const DrawTileSprites *t = &_station_display_datas[st][image]; if (railtype != INVALID_RAILTYPE) { -- cgit v1.2.3-54-g00ecf