diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 10:40:56 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 10:40:56 +0000 |
commit | 97a2f5bf2a3690112ea0ed17f19764b26cf20c59 (patch) | |
tree | b7c3b6c9ee370504bf4990b5c4ff9924900215b1 /src/strings.cpp | |
parent | abfbba139e7f1b138ea11da83eb145e24f0ad350 (diff) | |
download | openttd-97a2f5bf2a3690112ea0ed17f19764b26cf20c59.tar.xz |
(svn r10321) -Codechange: refer to sign text by index
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 911786707..24056b8c3 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -29,6 +29,7 @@ #include "group.h" #include "debug.h" #include "newgrf_townname.h" +#include "signs.h" #include "vehicle.h" /* for opendir/readdir/closedir */ @@ -873,6 +874,12 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c break; } + case SCC_SIGN_NAME: { // {SIGN} + const Sign *si = GetSign(GetInt32(&argv)); + buff = GetString(buff, si->str, last); + break; + } + case SCC_SETCASE: { // {SETCASE} /* This is a pseudo command, it's outputted when someone does {STRING.ack} * The modifier is added to all subsequent GetStringWithArgs that accept the modifier. */ |