(svn r8300) -Codechange: Add a prototype for DrawPlayerIcon to players.h and include that
instead of using externs. Also move DrawPlayerIcon from graph_gui.cpp to players.cpp.
This commit is contained in:
@@ -60,6 +60,11 @@ uint16 GetDrawStringPlayerColor(PlayerID player)
|
||||
return (_colour_gradient[_player_colors[player]][4]) | IS_PALETTE_COLOR;
|
||||
}
|
||||
|
||||
void DrawPlayerIcon(PlayerID p, int x, int y)
|
||||
{
|
||||
DrawSprite(SPR_PLAYER_ICON, PLAYER_SPRITE_COLOR(p), x, y);
|
||||
}
|
||||
|
||||
|
||||
static const SpriteID cheeks_table[4] = {
|
||||
0x325, 0x326,
|
||||
|
Reference in New Issue
Block a user