(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style

This commit is contained in:
skidd13
2007-11-24 10:38:43 +00:00
parent 3ff1cf32c3
commit 815b8d8df1
34 changed files with 118 additions and 133 deletions

View File

@@ -239,7 +239,7 @@ static inline byte ActivePlayerCount()
static inline Player *GetPlayer(PlayerID i)
{
assert(IS_INSIDE_1D(i, PLAYER_FIRST, lengthof(_players)));
assert(IsInsideBS(i, PLAYER_FIRST, lengthof(_players)));
return &_players[i];
}
@@ -250,7 +250,7 @@ static inline bool IsLocalPlayer()
static inline bool IsValidPlayer(PlayerID pi)
{
return IS_INSIDE_1D(pi, PLAYER_FIRST, MAX_PLAYERS);
return IsInsideBS(pi, PLAYER_FIRST, MAX_PLAYERS);
}
byte GetPlayerRailtypes(PlayerID p);