(svn r10643) -Merge (from NoAI): properly counting the amount of signs instead of using the size of the sign pool.

This commit is contained in:
rubidium
2007-07-20 18:35:33 +00:00
parent 7aa6d30922
commit 3f983ff1f2
2 changed files with 18 additions and 4 deletions

View File

@@ -18,6 +18,12 @@ struct Sign {
SignID index;
};
enum {
INVALID_SIGN = 0xFFFF,
};
extern SignID _new_sign_id;
DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
static inline SignID GetMaxSignIndex()
@@ -32,7 +38,8 @@ static inline SignID GetMaxSignIndex()
static inline uint GetNumSigns()
{
return GetSignPoolSize();
extern uint _total_signs;
return _total_signs;
}
/**