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 | 3f983ff1f227420eed715f4333a3055e9196eeef (patch) | |
tree | 02fc298d90a4b143959d1113151503aaed2707a1 /src/signs.h | |
parent | 7aa6d30922bf2aa253e5fe11c2e92cef7ac3e91d (diff) | |
download | openttd-3f983ff1f227420eed715f4333a3055e9196eeef.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; } /** |