Skip to content

Commit

Permalink
Codechange: Use correct char type in RemapNewGRFStringControlCode. (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterN authored Dec 18, 2024
1 parent e3e3cb1 commit c4424aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/newgrf_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ void StopTextRefStackUsage()
* @param modify_parameters When true, modify the OpenTTD string formatting parameters.
* @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) {
default: break;
Expand Down
2 changes: 1 addition & 1 deletion src/strings_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,6 @@ void GenerateTownNameString(StringBuilder &builder, size_t lang, uint32_t seed);
void GetTownName(StringBuilder &builder, const struct Town *t);
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 */

0 comments on commit c4424aa

Please sign in to comment.