summaryrefslogtreecommitdiff
path: root/src/signs.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-20 18:35:33 +0000
committerrubidium <rubidium@openttd.org>2007-07-20 18:35:33 +0000
commit3f983ff1f227420eed715f4333a3055e9196eeef (patch)
tree02fc298d90a4b143959d1113151503aaed2707a1 /src/signs.h
parent7aa6d30922bf2aa253e5fe11c2e92cef7ac3e91d (diff)
downloadopenttd-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.h9
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;
}
/**