1
0
Fork 0

Codechange: Use correct char type in RemapNewGRFStringControlCode.

pull/13173/head
Peter Nelson 2024-12-17 21:29:08 +00:00
parent 07fb7d20db
commit 5c310f3d89
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
2 changed files with 2 additions and 2 deletions

View File

@ -825,7 +825,7 @@ void StopTextRefStackUsage()
* @param modify_parameters When true, modify the OpenTTD string formatting parameters. * @param modify_parameters When true, modify the OpenTTD string formatting parameters.
* @return the string control code to "execute" now * @return the string control code to "execute" now
*/ */
uint RemapNewGRFStringControlCode(uint scc, const char **str, StringParameters &parameters, bool modify_parameters) char32_t RemapNewGRFStringControlCode(char32_t scc, const char **str, StringParameters &parameters, bool modify_parameters)
{ {
switch (scc) { switch (scc) {
default: break; default: break;

View File

@ -347,6 +347,6 @@ void GenerateTownNameString(StringBuilder &builder, size_t lang, uint32_t seed);
void GetTownName(StringBuilder &builder, const struct Town *t); void GetTownName(StringBuilder &builder, const struct Town *t);
void GRFTownNameGenerate(StringBuilder &builder, uint32_t grfid, uint16_t gen, uint32_t seed); void GRFTownNameGenerate(StringBuilder &builder, uint32_t grfid, uint16_t gen, uint32_t seed);
uint RemapNewGRFStringControlCode(uint scc, const char **str, StringParameters &parameters, bool modify_parameters); char32_t RemapNewGRFStringControlCode(char32_t scc, const char **str, StringParameters &parameters, bool modify_parameters);
#endif /* STRINGS_INTERNAL_H */ #endif /* STRINGS_INTERNAL_H */