mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 09:22:42 +01:00
Codechange: Replace macros GENERAL_SPRITE_COLOUR and COMPANY_SPRITE_COLOUR with functions GetColourPalette and GetCompanyPalette.
This commit is contained in:
@@ -502,7 +502,7 @@ void DrawNewObjectTileInGUI(int x, int y, const ObjectSpec *spec, uint8_t view)
|
||||
const Livery &l = Company::Get(_local_company)->livery[0];
|
||||
palette = SPR_2CCMAP_BASE + l.colour1 + l.colour2 * 16;
|
||||
} else {
|
||||
palette = COMPANY_SPRITE_COLOUR(_local_company);
|
||||
palette = GetCompanyPalette(_local_company);
|
||||
}
|
||||
} else {
|
||||
/* There's no company, so just take the base palette. */
|
||||
|
||||
Reference in New Issue
Block a user