summaryrefslogtreecommitdiff
path: root/src/signs.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-12 19:58:06 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-12 19:58:06 +0000
commitab8382c0db353d9d1ba6b7a9690d56aa2415258c (patch)
treef23fb584e594e0c9ff5a9ad650d97c493714078d /src/signs.h
parenta222fe2e86d2736217f3bba43b28e95297b8d71e (diff)
downloadopenttd-ab8382c0db353d9d1ba6b7a9690d56aa2415258c.tar.xz
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names. -Fix: NewGRF engines could not be renamed.
Diffstat (limited to 'src/signs.h')
-rw-r--r--src/signs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signs.h b/src/signs.h
index 59f07d1ed..5036700bd 100644
--- a/src/signs.h
+++ b/src/signs.h
@@ -11,7 +11,7 @@ struct Sign;
DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
struct Sign : PoolItem<Sign, SignID, &_Sign_pool> {
- StringID str;
+ char *name;
ViewportSign sign;
int32 x;
int32 y;
@@ -21,12 +21,12 @@ struct Sign : PoolItem<Sign, SignID, &_Sign_pool> {
/**
* Creates a new sign
*/
- Sign(StringID string = STR_NULL);
+ Sign(PlayerID owner = INVALID_PLAYER);
/** Destroy the sign */
~Sign();
- inline bool IsValid() const { return this->str != STR_NULL; }
+ inline bool IsValid() const { return this->owner != INVALID_PLAYER; }
};
enum {