Changeset - r13803:c068678d064c
[Not reviewed]
master
0 3 0
rubidium - 15 years ago 2009-11-29 17:24:39
rubidium@openttd.org
(svn r18339) -Cleanup: remove SKIP support from strgen too
3 files changed with 0 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/strings.cpp
Show inline comments
 
@@ -798,16 +798,12 @@ static char *FormatString(char *buff, co
 
				args[0] = GetInt32(&argv) * units[_settings_game.locale.units].f_m >> units[_settings_game.locale.units].f_s;
 
				buff = FormatString(buff, GetStringPtr(units[_settings_game.locale.units].force), args, modifier >> 24, last);
 
				modifier = 0;
 
				break;
 
			}
 

	
 
			case SCC_SKIP: // {SKIP}
 
				argv++;
 
				break;
 

	
 
			/* This sets up the gender for the string.
 
			 * We just ignore this one. It's used in {G 0 Der Die Das} to determine the case. */
 
			case SCC_GENDER_INDEX: // {GENDER 0}
 
				str++;
 
				break;
 

	
src/table/control_codes.h
Show inline comments
 
@@ -65,13 +65,12 @@ enum StringControlCode {
 
	SCC_STRING1,
 
	SCC_STRING2,
 
	SCC_STRING3,
 
	SCC_STRING4,
 
	SCC_STRING5,
 

	
 
	SCC_SKIP,
 
	SCC_STRING,
 
	SCC_COMMA,
 
	SCC_NUM,
 
	SCC_ZEROFILL_NUM,
 
	SCC_HEX,
 
	SCC_BYTES,
src/table/strgen_tables.h
Show inline comments
 
@@ -82,14 +82,12 @@ static const CmdStruct _cmd_structs[] = 
 

	
 
	{"DATE_TINY",       EmitSingleChar, SCC_DATE_TINY,          1, C_NONE},
 
	{"DATE_SHORT",      EmitSingleChar, SCC_DATE_SHORT,         1, C_NONE},
 
	{"DATE_LONG",       EmitSingleChar, SCC_DATE_LONG,          1, C_NONE},
 
	{"DATE_ISO",        EmitSingleChar, SCC_DATE_ISO,           1, C_NONE},
 

	
 
	{"SKIP",            EmitSingleChar, SCC_SKIP,               1, C_NONE},
 

	
 
	{"STRING",          EmitSingleChar, SCC_STRING,             1, C_CASE},
 
	{"RAW_STRING",      EmitSingleChar, SCC_RAW_STRING_POINTER, 1, C_NONE},
 

	
 
	/* Numbers */
 
	{"COMMA",           EmitSingleChar, SCC_COMMA,              1, C_NONE}, // Number with comma
 
	{"NUM",             EmitSingleChar, SCC_NUM,                1, C_NONE}, // Signed number
0 comments (0 inline, 0 general)