1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-07 07:04:36 +01:00

Fixed console open command

This commit is contained in:
Robert Jordan
2015-06-20 17:39:40 -04:00
parent d17a731b56
commit eea2a9f7c4

View File

@@ -318,14 +318,14 @@ void console_printf(const char *format, ...)
int console_parse_int(const char *src, bool *valid) {
char *end;
int value;
value = strtol(src, &end, 10); *valid &= (*end == '\0');
value = strtol(src, &end, 10); *valid = (*end == '\0');
return value;
}
double console_parse_double(const char *src, bool *valid) {
char *end;
double value;
value = strtod(src, &end); *valid &= (*end == '\0');
value = strtod(src, &end); *valid = (*end == '\0');
return value;
}
@@ -1030,7 +1030,9 @@ void console_execute_silent(const char *src)
static bool invalidArguments(bool *invalid, bool arguments)
{
if (!arguments)
if (!arguments) {
*invalid = true;
return !invalid;
return false;
}
return true;
}