summaryrefslogtreecommitdiff
path: root/src/player_base.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-07-18 21:01:30 +0000
committersmatz <smatz@openttd.org>2008-07-18 21:01:30 +0000
commitf2da04573105942c4c6dc6e64e65281acb596850 (patch)
treeb97d506f8fe3aae860d6eefe2edef4ac203579de /src/player_base.h
parent5f280d0e505098c237d79647ce75639eb2b87fb2 (diff)
downloadopenttd-f2da04573105942c4c6dc6e64e65281acb596850.tar.xz
(svn r13733) -Fix (r13731): gcc2.95 compilation
Diffstat (limited to 'src/player_base.h')
-rw-r--r--src/player_base.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/player_base.h b/src/player_base.h
index 6e175d127..e8c77344d 100644
--- a/src/player_base.h
+++ b/src/player_base.h
@@ -80,11 +80,9 @@ struct Player : PoolItem<Player, PlayerByte, &_Player_pool> {
inline bool IsValid() const { return this->name_1 != 0; }
};
-inline bool operator < (PlayerID p, uint u) {return (uint)p < u;}
-
static inline bool IsValidPlayerID(PlayerID index)
{
- return index < GetPlayerPoolSize() && GetPlayer(index)->IsValid();
+ return (uint)index < GetPlayerPoolSize() && GetPlayer(index)->IsValid();
}
#define FOR_ALL_PLAYERS_FROM(d, start) for (d = GetPlayer(start); d != NULL; d = (d->index + 1U < GetPlayerPoolSize()) ? GetPlayer(d->index + 1U) : NULL) if (d->IsValid())