summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-24 10:38:43 +0000
committerskidd13 <skidd13@openttd.org>2007-11-24 10:38:43 +0000
commitbf959f926ff6dee99a15d91652256169a6484042 (patch)
tree9c936ecbb5e2e4367788a18a55cbf52eb6eb6cc6 /src/player.h
parent64246a2775c56c99746727a02af509fe8d75d53f (diff)
downloadopenttd-bf959f926ff6dee99a15d91652256169a6484042.tar.xz
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h
index 5216714e7..bd9356340 100644
--- a/src/player.h
+++ b/src/player.h
@@ -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);