diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/strgen/strgen.cpp | 30 | ||||
-rw-r--r-- | src/table/strgen_tables.h | 6 |
2 files changed, 1 insertions, 35 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 diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h index 5c12557c0..8140d1c00 100644 --- a/src/table/strgen_tables.h +++ b/src/table/strgen_tables.h @@ -28,17 +28,11 @@ struct CmdStruct { CmdFlags flags; }; -static void EmitSetX(char *buf, int value); -static void EmitSetXY(char *buf, int value); static void EmitSingleChar(char *buf, int value); static void EmitPlural(char *buf, int value); static void EmitGender(char *buf, int value); static const CmdStruct _cmd_structs[] = { - /* Update position */ - {"SETX", EmitSetX, SCC_SETX, 0, C_NONE}, - {"SETXY", EmitSetXY, SCC_SETXY, 0, C_NONE}, - /* Font size */ {"TINYFONT", EmitSingleChar, SCC_TINYFONT, 0, C_NONE}, {"BIGFONT", EmitSingleChar, SCC_BIGFONT, 0, C_NONE}, |