diff options
author | maedhros <maedhros@openttd.org> | 2007-01-21 11:49:18 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-01-21 11:49:18 +0000 |
commit | 7a7562d8e24f231f5e1a66281f1ec99027a86d1d (patch) | |
tree | 99a62ac7806ee2a7216d9998af847326bf5b249c /src/players.cpp | |
parent | 501cd51c15c3d775a06e42f66e38f6f571c2359c (diff) | |
download | openttd-7a7562d8e24f231f5e1a66281f1ec99027a86d1d.tar.xz |
(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.
Diffstat (limited to 'src/players.cpp')
-rw-r--r-- | src/players.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/players.cpp b/src/players.cpp index 6301d2881..9cf74ae70 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -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, |