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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user