summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-29 19:26:13 +0000
committertron <tron@openttd.org>2006-08-29 19:26:13 +0000
commitdae76ce67ea71154e0bd87a4180c7496233e9ca9 (patch)
treebfebe9391624be5031618ddb87d904e064fe4034 /main_gui.c
parent7ea68d68a6f2547d61863864097ad22f11c60143 (diff)
downloadopenttd-dae76ce67ea71154e0bd87a4180c7496233e9ca9.tar.xz
(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
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c
index 65dcce396..de3c9ec85 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -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;