Merge branch 'master' into jgrpp

# Conflicts:
#	.github/workflows/release-macos.yml
#	src/company_gui.cpp
#	src/linkgraph/linkgraph.cpp
#	src/newgrf_debug_gui.cpp
#	src/strgen/strgen_base.cpp
#	src/timetable_gui.cpp
This commit is contained in:
Jonathan G Rennison
2023-05-28 10:20:03 +01:00
146 changed files with 393 additions and 363 deletions

View File

@@ -1122,7 +1122,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
memset(sub_args_need_free, 0, sizeof(sub_args_need_free));
char *p;
uint32 stringid = strtoul(str, &p, 16);
uint32 stringid = std::strtoul(str, &p, 16);
if (*p != ':' && *p != '\0') {
while (*p != '\0') p++;
str = p;
@@ -1174,7 +1174,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
bool lookup = (l == SCC_ENCODED);
if (lookup) s += len;
param = strtoull(s, &p, 16);
param = std::strtoull(s, &p, 16);
if (lookup) {
if (param >= TAB_SIZE_GAMESCRIPT) {