mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r23830) -Revert (r23804) [FS#4986]: while the idea was good, it causes too much trouble
This commit is contained in:
parent
d5e0be7d7f
commit
f917ac0a0f
@ -1066,7 +1066,7 @@ uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const
|
|||||||
case SCC_NEWGRF_UNPRINT: *buff = max(*buff - Utf8Consume(str), buf_start); break;
|
case SCC_NEWGRF_UNPRINT: *buff = max(*buff - Utf8Consume(str), buf_start); break;
|
||||||
|
|
||||||
case SCC_NEWGRF_PRINT_WORD_STRING_ID:
|
case SCC_NEWGRF_PRINT_WORD_STRING_ID:
|
||||||
*argv = _newgrf_textrefstack.PopUnsignedWord();
|
*argv = TTDPStringIDToOTTDStringIDMapping(_newgrf_textrefstack.PopUnsignedWord());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -838,7 +838,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SCC_NEWGRF_PRINT_WORD_STRING_ID: {
|
case SCC_NEWGRF_PRINT_WORD_STRING_ID: {
|
||||||
StringID substr = TTDPStringIDToOTTDStringIDMapping(args->GetInt32(SCC_NEWGRF_PRINT_WORD_STRING_ID));
|
StringID substr = args->GetInt32(SCC_NEWGRF_PRINT_WORD_STRING_ID);
|
||||||
str_stack.push(GetStringPtr(substr));
|
str_stack.push(GetStringPtr(substr));
|
||||||
case_index = next_substr_case_index;
|
case_index = next_substr_case_index;
|
||||||
next_substr_case_index = 0;
|
next_substr_case_index = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user