mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 19:39:12 +00:00
(svn r3054) Remove the unsused function GetNumRailtypes()
This commit is contained in:
15
player.h
15
player.h
@@ -219,21 +219,6 @@ static inline bool IsLocalPlayer(void)
|
|||||||
return _local_player == _current_player;
|
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);
|
byte GetPlayerRailtypes(int p);
|
||||||
|
|
||||||
/** Finds out if a Player has a certain railtype available
|
/** Finds out if a Player has a certain railtype available
|
||||||
|
Reference in New Issue
Block a user