From dae76ce67ea71154e0bd87a4180c7496233e9ca9 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 29 Aug 2006 19:26:13 +0000 Subject: (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 --- players.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'players.c') diff --git a/players.c b/players.c index 90b041c89..74047d2aa 100644 --- a/players.c +++ b/players.c @@ -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; } -- cgit v1.2.3-54-g00ecf