diff --git a/src/strgen/strgen_base.cpp b/src/strgen/strgen_base.cpp index 078e0abbf2..4fdc22f06d 100644 --- a/src/strgen/strgen_base.cpp +++ b/src/strgen/strgen_base.cpp @@ -639,6 +639,7 @@ static const CmdStruct *TranslateCmdForCompare(const CmdStruct *a) strcmp(a->cmd, "STRING5") == 0 || strcmp(a->cmd, "STRING6") == 0 || strcmp(a->cmd, "STRING7") == 0 || + strcmp(a->cmd, "STRING8") == 0 || strcmp(a->cmd, "RAW_STRING") == 0) { return FindCmd("STRING", 6); } diff --git a/src/strings.cpp b/src/strings.cpp index 7d121d8457..196cf15458 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1299,7 +1299,8 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg case SCC_STRING4: case SCC_STRING5: case SCC_STRING6: - case SCC_STRING7: { // {STRING1..7} + case SCC_STRING7: + case SCC_STRING8: { // {STRING1..8} /* Strings that consume arguments */ StringID str = args->GetInt32(b); if (game_script && GetStringTab(str) != TEXT_TAB_GAMESCRIPT_START) break; diff --git a/src/table/control_codes.h b/src/table/control_codes.h index 69838c5bb5..74b773a5b0 100644 --- a/src/table/control_codes.h +++ b/src/table/control_codes.h @@ -89,6 +89,7 @@ enum StringControlCode { SCC_STRING5, SCC_STRING6, SCC_STRING7, + SCC_STRING8, SCC_STRING, diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h index f0a0f868bb..674e9ff038 100644 --- a/src/table/strgen_tables.h +++ b/src/table/strgen_tables.h @@ -70,6 +70,7 @@ static const CmdStruct _cmd_structs[] = { {"STRING5", EmitSingleChar, SCC_STRING5, 6, -1, C_CASE | C_GENDER}, // included string that consumes the string id and FIVE arguments {"STRING6", EmitSingleChar, SCC_STRING6, 7, -1, C_CASE | C_GENDER}, // included string that consumes the string id and SIX arguments {"STRING7", EmitSingleChar, SCC_STRING7, 8, -1, C_CASE | C_GENDER}, // included string that consumes the string id and SEVEN arguments + {"STRING8", EmitSingleChar, SCC_STRING8, 9, -1, C_CASE | C_GENDER}, // included string that consumes the string id and EIGHT arguments {"STATION_FEATURES", EmitSingleChar, SCC_STATION_FEATURES, 1, -1, C_NONE}, // station features string, icons of the features {"INDUSTRY", EmitSingleChar, SCC_INDUSTRY_NAME, 1, -1, C_CASE | C_GENDER}, // industry, takes an industry #, can have cases