From b85da4fef2897039e198da97f524f1ca9c6bf913 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 17 Oct 2005 10:09:37 +0000 Subject: (svn r3054) Remove the unsused function GetNumRailtypes() --- player.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/player.h b/player.h index 82a15a6db..cc613490f 100644 --- a/player.h +++ b/player.h @@ -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 -- cgit v1.2.3-70-g09d2