From edb56c2c46f1dbb951d4cb67348cfc08d8016c8f Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 10 Sep 2005 15:14:35 +0000 Subject: (svn r2936) Move string commands to a non-printable range and remove stale comments --- strgen/strgen.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'strgen/strgen.c') diff --git a/strgen/strgen.c b/strgen/strgen.c index 84df5fa17..0bda80ba2 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -332,7 +332,7 @@ static void EmitPlural(char *buf, int value) Fatal("%s: Invalid number of plural forms. Expecting %d, found %d.", _cur_ident, _plural_form_counts[_lang_pluralform], nw); - PutByte(0x7D); + PutByte(0x8D); PutByte(TranslateArgumentIdx(argidx)); EmitWordList(words, nw); } @@ -408,14 +408,6 @@ static const CmdStruct _cmd_structs[] = { {"DKBLUE", EmitSingleByte, 30, 0}, {"BLACK", EmitSingleByte, 31, 0}, - // 0x7B=123 is the LAST special character we may use. - - // Numbers - {"COMMA", EmitSingleByte, 0x7B, 1}, // Number with comma - {"NUM", EmitSingleByte, 0x7E, 1}, // Signed number - - {"CURRENCY", EmitSingleByte, 0x7F, 1}, - // 0x85 {"CURRCOMPACT", EmitEscapedByte, 0, 1}, // compact currency (32 bits) {"REV", EmitEscapedByte, 2, 0}, // openttd revision string @@ -456,6 +448,12 @@ static const CmdStruct _cmd_structs[] = { {"STRING", EmitSingleByte, 0x88, 1, C_CASE}, + // Numbers + {"COMMA", EmitSingleByte, 0x8B, 1}, // Number with comma + {"NUM", EmitSingleByte, 0x8E, 1}, // Signed number + + {"CURRENCY", EmitSingleByte, 0x8F, 1}, + {"WAYPOINT", EmitSingleByte, 0x99, 1}, // waypoint name {"STATION", EmitSingleByte, 0x9A, 1}, {"TOWN", EmitSingleByte, 0x9B, 1}, @@ -1017,7 +1015,7 @@ static int TranslateArgumentIdx(int argidx) static void PutArgidxCommand(void) { - PutByte(0x7C); + PutByte(0x8C); PutByte(TranslateArgumentIdx(_cur_argidx)); } -- cgit v1.2.3-54-g00ecf