diff options
author | tron <tron@openttd.org> | 2006-08-29 19:26:13 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-29 19:26:13 +0000 |
commit | b83a3f8726e3980820fa2c4b508f70a56826228b (patch) | |
tree | bfebe9391624be5031618ddb87d904e064fe4034 /players.c | |
parent | 21db9de388330156680de6fd745d770563de0270 (diff) | |
download | openttd-b83a3f8726e3980820fa2c4b508f70a56826228b.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 'players.c')
-rw-r--r-- | players.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ uint16 GetDrawStringPlayerColor(PlayerID player) * player */ if (player == OWNER_SPECTATOR || player == OWNER_SPECTATOR - 1) return 1; - return (_color_list[_player_colors[player]].window_color_1b) | IS_PALETTE_COLOR; + return (_colour_gradient[_player_colors[player]][4]) | IS_PALETTE_COLOR; } |