diff options
author | tron <tron@openttd.org> | 2005-10-17 10:09:37 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-17 10:09:37 +0000 |
commit | b85da4fef2897039e198da97f524f1ca9c6bf913 (patch) | |
tree | 103e9fb2f3dea867620ff498253a6ea06f84e37f | |
parent | 60882b29c85d150ca55f7d4791e425f444b45e2e (diff) | |
download | openttd-b85da4fef2897039e198da97f524f1ca9c6bf913.tar.xz |
(svn r3054) Remove the unsused function GetNumRailtypes()
-rw-r--r-- | player.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -219,21 +219,6 @@ static inline bool IsLocalPlayer(void) return _local_player == _current_player; } -/** Returns the number of rail types the player can build - * @param *p Player in question - */ -static inline int GetNumRailtypes(const Player *p) -{ - int num = 0; - int i; - - for (i = 0; i < (int)sizeof(p->avail_railtypes) * 8; i++) - if (HASBIT(p->avail_railtypes, i)) num++; - - assert(num <= RAILTYPE_END); - return num; -} - byte GetPlayerRailtypes(int p); /** Finds out if a Player has a certain railtype available |