1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 13:39:09 +00:00

(svn r10321) -Codechange: refer to sign text by index

This commit is contained in:
2007-06-25 10:40:56 +00:00
parent 5c6106cbcf
commit fd73ea2058
8 changed files with 18 additions and 6 deletions

View File

@@ -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. */