mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 19:54:06 +01:00
Codechange: Replace macros GENERAL_SPRITE_COLOUR and COMPANY_SPRITE_COLOUR with functions GetColourPalette and GetCompanyPalette.
This commit is contained in:
@@ -3174,7 +3174,7 @@ static void DrawTile_Station(TileInfo *ti)
|
||||
|
||||
PaletteID palette;
|
||||
if (Company::IsValidID(owner)) {
|
||||
palette = COMPANY_SPRITE_COLOUR(owner);
|
||||
palette = GetCompanyPalette(owner);
|
||||
} else {
|
||||
/* Some stations are not owner by a company, namely oil rigs */
|
||||
palette = PALETTE_TO_GREY;
|
||||
@@ -3406,7 +3406,7 @@ draw_default_foundation:
|
||||
void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image)
|
||||
{
|
||||
int32_t total_offset = 0;
|
||||
PaletteID pal = COMPANY_SPRITE_COLOUR(_local_company);
|
||||
PaletteID pal = GetCompanyPalette(_local_company);
|
||||
const DrawTileSprites *t = GetStationTileLayout(st, image);
|
||||
const RailTypeInfo *railtype_info = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user