forked from rosebudai/OpenRCT2-Web
Fixed console open command
This commit is contained in:
1 parent
d17a731b56
commit
eea2a9f7c4
1 file changed
+6
-4
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user