(svn r6183) Move GetDrawStringPlayerColor() out of gfx.[ch]

This commit is contained in:
tron
2006-08-28 06:21:48 +00:00
parent 2930781bea
commit 4e36c4a349
6 changed files with 14 additions and 12 deletions

View File

@@ -27,6 +27,17 @@
#include "ai/ai.h"
#include "date.h"
uint16 GetDrawStringPlayerColor(PlayerID player)
{
/* Get the color for DrawString-subroutines which matches the color of the
* player
*/
if (player == OWNER_SPECTATOR || player == OWNER_SPECTATOR - 1) return 1;
return (_color_list[_player_colors[player]].window_color_1b) | IS_PALETTE_COLOR;
}
static const SpriteID cheeks_table[4] = {
0x325, 0x326,
0x390, 0x3B0,