1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 08:52:40 +01:00

Codechange: Replace macros GENERAL_SPRITE_COLOUR and COMPANY_SPRITE_COLOUR with functions GetColourPalette and GetCompanyPalette.

This commit is contained in:
frosch
2025-04-17 17:36:22 +02:00
committed by frosch
parent c2c5dae760
commit cde350dc01
20 changed files with 52 additions and 36 deletions

View File

@@ -450,7 +450,7 @@ static void DrawTile_Object(TileInfo *ti)
if (type < NEW_OBJECT_OFFSET) {
const DrawTileSprites *dts = nullptr;
Owner to = GetTileOwner(ti->tile);
PaletteID palette = to == OWNER_NONE ? PAL_NONE : COMPANY_SPRITE_COLOUR(to);
PaletteID palette = to == OWNER_NONE ? PAL_NONE : GetCompanyPalette(to);
if (type == OBJECT_HQ) {
TileIndex diff = ti->tile - Object::GetByTile(ti->tile)->location.tile;