summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-28 20:27:42 +0000
committerfrosch <frosch@openttd.org>2009-11-28 20:27:42 +0000
commitbf0b72ae9e907143455225a2a5ea68229b83e9b6 (patch)
tree8fb72f7950503cd96b1195f1851b10d7311d712d /src/strgen
parentae97bf029c7bdc52db4ed8acf6288b86acf6ad42 (diff)
downloadopenttd-bf0b72ae9e907143455225a2a5ea68229b83e9b6.tar.xz
(svn r18329) -Remove: [strgen] Support for {SETX} and {SETXY}. Let it rest in peace as NewGRF relict.
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen.cpp30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index a871a3266..1260a056e 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -239,30 +239,6 @@ static void EmitSingleChar(char *buf, int value)
}
-static void EmitSetX(char *buf, int value)
-{
- char *err;
- int x = strtol(buf, &err, 0);
- if (*err != '\0') error("SetX param invalid");
- PutUtf8(SCC_SETX);
- PutByte((byte)x);
-}
-
-
-static void EmitSetXY(char *buf, int value)
-{
- char *err;
-
- int x = strtol(buf, &err, 0);
- if (*err != ' ') error("SetXY param invalid");
- int y = strtol(err + 1, &err, 0);
- if (*err != 0) error("SetXY param invalid");
-
- PutUtf8(SCC_SETXY);
- PutByte((byte)x);
- PutByte((byte)y);
-}
-
/* The plural specifier looks like
* {NUM} {PLURAL -1 passenger passengers} then it picks either passenger/passengers depending on the count in NUM */
@@ -1228,11 +1204,7 @@ int CDECL main(int argc, char *argv[])
break;
default:
- if (cs->proc == EmitSetX) {
- flags = '1'; // Command needs one parameter
- } else if (cs->proc == EmitSetXY) {
- flags = '2'; // Command needs two parameters
- } else if (cs->proc == EmitGender) {
+ if (cs->proc == EmitGender) {
flags = 'g'; // Command needs number of parameters defined by number of genders
} else if (cs->proc == EmitPlural) {
flags = 'p'; // Command needs number of parameters defined by plural value