From c4424aa894faa8f06ddfdeab86f3aa4a213a0e19 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 18 Dec 2024 12:58:23 +0000 Subject: [PATCH] Codechange: Use correct char type in RemapNewGRFStringControlCode. (#13173) --- src/newgrf_text.cpp | 2 +- src/strings_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 1c8bf4fa3747a..c62ce6fbe72d8 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -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 ¶meters, bool modify_parameters) +char32_t RemapNewGRFStringControlCode(char32_t scc, const char **str, StringParameters ¶meters, bool modify_parameters) { switch (scc) { default: break; diff --git a/src/strings_internal.h b/src/strings_internal.h index e56f2b8cea97a..b710be23e5423 100644 --- a/src/strings_internal.h +++ b/src/strings_internal.h @@ -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 ¶meters, bool modify_parameters); +char32_t RemapNewGRFStringControlCode(char32_t scc, const char **str, StringParameters ¶meters, bool modify_parameters); #endif /* STRINGS_INTERNAL_H */