forked from mirror/OpenTTD
(svn r6222) Remove struct ColorList, because the names of its attributes are plain confusing
All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear Also add the names of colour the gradients as enum
This commit is contained in:
@@ -2349,7 +2349,7 @@ void SetupColorsAndInitialWindow(void)
|
||||
const byte *b = GetNonSprite(PALETTE_RECOLOR_START + i);
|
||||
|
||||
assert(b);
|
||||
_color_list[i] = *(const ColorList*)(b + 0xC6);
|
||||
memcpy(_colour_gradient[i], b + 0xC6, sizeof(_colour_gradient[i]));
|
||||
}
|
||||
|
||||
width = _screen.width;
|
||||
|
Reference in New Issue
Block a user