forked from mirror/OpenTTD
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
This commit is contained in:
@@ -386,7 +386,7 @@ void ShowSelectGameWindow();
|
||||
void SetupColorsAndInitialWindow()
|
||||
{
|
||||
for (uint i = 0; i != 16; i++) {
|
||||
const byte *b = GetNonSprite(PALETTE_RECOLOR_START + i);
|
||||
const byte *b = GetNonSprite(PALETTE_RECOLOR_START + i, ST_RECOLOUR);
|
||||
|
||||
assert(b);
|
||||
memcpy(_colour_gradient[i], b + 0xC6, sizeof(_colour_gradient[i]));
|
||||
|
Reference in New Issue
Block a user