diff options
author | celestar <celestar@openttd.org> | 2005-06-21 16:28:17 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-06-21 16:28:17 +0000 |
commit | aa7334a3eca674131dc1198c592c7e4a925f1d56 (patch) | |
tree | dbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /player.h | |
parent | e2df1d71d5ec39f89c540f116c1cb0b765a74229 (diff) | |
download | openttd-aa7334a3eca674131dc1198c592c7e4a925f1d56.tar.xz |
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -197,14 +197,13 @@ void UpdatePlayerMoney32(Player *p); #define MAX_PLAYERS 8 VARDEF Player _players[MAX_PLAYERS]; -#define DEREF_PLAYER(i) (GetPlayer(i)) static inline Player* GetPlayer(uint i) { assert(i < lengthof(_players)); return &_players[i]; } -#define IS_HUMAN_PLAYER(p) (!DEREF_PLAYER((byte)(p))->is_ai) +#define IS_HUMAN_PLAYER(p) (!GetPlayer((byte)(p))->is_ai) #define IS_INTERACTIVE_PLAYER(p) (((byte)p) == _local_player) typedef struct HighScore { |