(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:
@@ -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);}
|
||||
|
||||
|
Reference in New Issue
Block a user