--- a/players.c Tue Oct 24 22:19:12 2006 +0000
+++ b/players.c Tue Oct 24 22:23:08 2006 +0000
@@ -30,10 +30,9 @@
uint16 GetDrawStringPlayerColor(PlayerID player)
{
- /* Get the color for DrawString-subroutines which matches the color of the
- * player
- */
- if (player == PLAYER_SPECTATOR || player == PLAYER_SPECTATOR - 1) return 1;
+ /* Get the color for DrawString-subroutines which matches the color
+ * of the player */
+ if (!IsValidPlayer(player)) return _colour_gradient[COLOUR_WHITE][4] | IS_PALETTE_COLOR;
return (_colour_gradient[_player_colors[player]][4]) | IS_PALETTE_COLOR;
}