(svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an

actual playable player (< MAX_PLAYERS) or not.
This commit is contained in:
Darkvater
2006-10-14 22:31:18 +00:00
parent 9732c129c1
commit 6b6d908308
15 changed files with 50 additions and 49 deletions

View File

@@ -245,6 +245,11 @@ static inline bool IsLocalPlayer(void)
return _local_player == _current_player;
}
static inline bool IsValidPlayer(PlayerID pi)
{
return pi < MAX_PLAYERS;
}
void DeletePlayerWindows(PlayerID pi);
byte GetPlayerRailtypes(PlayerID p);