mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
disable_clearance_checks and disable_support_limits in console
This commit is contained in:
@@ -665,6 +665,12 @@ static int cc_get(const utf8 **argv, int argc)
|
||||
else if (strcmp(argv[0], "render_weather_gloom") == 0) {
|
||||
console_printf("render_weather_gloom %d", gConfigGeneral.render_weather_gloom);
|
||||
}
|
||||
else if (strcmp(argv[0], "disable_clearance_checks") == 0) {
|
||||
console_printf("disable_clearance_checks %d", gCheatsDisableClearanceChecks);
|
||||
}
|
||||
else if (strcmp(argv[0], "disable_support_limits") == 0) {
|
||||
console_printf("disable_support_limits %d", gCheatsDisableSupportLimits);
|
||||
}
|
||||
else {
|
||||
console_writeline_warning("Invalid variable.");
|
||||
}
|
||||
@@ -847,6 +853,14 @@ static int cc_set(const utf8 **argv, int argc)
|
||||
config_save_default();
|
||||
console_execute_silent("get render_weather_gloom");
|
||||
}
|
||||
else if (strcmp(argv[0], "disable_clearance_checks") == 0 && invalidArguments(&invalidArgs, int_valid[0])) {
|
||||
gCheatsDisableClearanceChecks = (int_val[0] != 0);
|
||||
console_execute_silent("get disable_clearance_checks");
|
||||
}
|
||||
else if (strcmp(argv[0], "disable_support_limits") == 0 && invalidArguments(&invalidArgs, int_valid[0])) {
|
||||
gCheatsDisableSupportLimits = (int_val[0] != 0);
|
||||
console_execute_silent("get disable_support_limits");
|
||||
}
|
||||
else if (invalidArgs) {
|
||||
console_writeline_error("Invalid arguments.");
|
||||
}
|
||||
@@ -1033,6 +1047,8 @@ utf8* console_variable_table[] = {
|
||||
"window_limit",
|
||||
"render_weather_effects",
|
||||
"render_weather_gloom",
|
||||
"disable_clearance_checks",
|
||||
"disable_support_limits",
|
||||
};
|
||||
utf8* console_window_table[] = {
|
||||
"object_selection",
|
||||
|
||||
Reference in New Issue
Block a user