Changeset - r2525:1c51bf50cdea
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-10-17 10:09:37
tron@openttd.org
(svn r3054) Remove the unsused function GetNumRailtypes()
1 file changed with 0 insertions and 15 deletions:
0 comments (0 inline, 0 general)
player.h
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)