(svn r6932) -Codechange: Send server messages with format NETWORK_ACTION_SERVER_MESSAGE so it is

general colour like the rest of the server messages. Spectators speak in grey.
This commit is contained in:
Darkvater
2006-10-24 22:23:08 +00:00
parent a28048a4ea
commit 883d84a93e
4 changed files with 15 additions and 9 deletions

View File

@@ -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;
}