summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-01-21 11:49:18 +0000
committermaedhros <maedhros@openttd.org>2007-01-21 11:49:18 +0000
commitcf06eae3bbafcb53f040393f14c62fe4e583831c (patch)
tree99a62ac7806ee2a7216d9998af847326bf5b249c /src/player.h
parent9e7b06652251bbb00a9bbcad9c224260ef6217d5 (diff)
downloadopenttd-cf06eae3bbafcb53f040393f14c62fe4e583831c.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/player.h')
-rw-r--r--src/player.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index 1f91f58de..2714b19f7 100644
--- a/src/player.h
+++ b/src/player.h
@@ -262,6 +262,8 @@ static inline bool IsInteractivePlayer(PlayerID pi)
return pi == _local_player;
}
+void DrawPlayerIcon(PlayerID p, int x, int y);
+
/* Validate functions for rail building */
static inline bool ValParamRailtype(uint32 rail) { return HASBIT(GetPlayer(_current_player)->avail_railtypes, rail);}