diff options
author | rubidium <rubidium@openttd.org> | 2007-07-20 18:35:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-20 18:35:33 +0000 |
commit | f7682403e33612d9bb1b67c036f8129ffe4b2107 (patch) | |
tree | 02fc298d90a4b143959d1113151503aaed2707a1 /src/signs.h | |
parent | a045c22db06f05ad963cae5893741f1f9bf46e7f (diff) | |
download | openttd-f7682403e33612d9bb1b67c036f8129ffe4b2107.tar.xz |
(svn r10643) -Merge (from NoAI): properly counting the amount of signs instead of using the size of the sign pool.
Diffstat (limited to 'src/signs.h')
-rw-r--r-- | src/signs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/signs.h b/src/signs.h index 82a022abf..53551586f 100644 --- a/src/signs.h +++ b/src/signs.h @@ -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; } /** |