1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Testing Improvements

Added test_unfinished_tracks and no_test_crashes
Both are enablable through the console and test_unfinished_tracks is
also an option.
Increased options window height.
Made it so "out" ride window is opened after a crash instead of RCT2's
ride window.
ride_is_valid_for_open has a counterpart: ride_is_valid_for_test
This commit is contained in:
Robert Jordan
2015-05-22 14:18:48 -04:00
parent d0a50c43f4
commit 37221f0aae
7 changed files with 196 additions and 4 deletions

View File

@@ -489,6 +489,12 @@ static int cc_get(const char **argv, int argc)
else if (strcmp(argv[0], "console_small_font") == 0) {
console_printf("console_small_font %d", gConfigInterface.console_small_font);
}
else if (strcmp(argv[0], "test_unfinished_tracks") == 0) {
console_printf("test_unfinished_tracks %d", gConfigGeneral.test_unfinished_tracks);
}
else if (strcmp(argv[0], "no_test_crashes") == 0) {
console_printf("no_test_crashes %d", gConfigGeneral.no_test_crashes);
}
else {
console_writeline_warning("Invalid variable.");
}
@@ -607,6 +613,16 @@ static int cc_set(const char **argv, int argc)
config_save_default();
console_execute_silent("get console_small_font");
}
else if (strcmp(argv[0], "test_unfinished_tracks") == 0 && int_valid) {
gConfigGeneral.test_unfinished_tracks = (int_val != 0);
config_save_default();
console_execute_silent("get test_unfinished_tracks");
}
else if (strcmp(argv[0], "no_test_crashes") == 0 && int_valid) {
gConfigGeneral.no_test_crashes = (int_val != 0);
config_save_default();
console_execute_silent("get no_test_crashes");
}
else {
console_writeline_error("Invalid variable or value.");
}
@@ -648,7 +664,9 @@ char* console_variable_table[] = {
"park_open",
"climate",
"game_speed",
"console_small_font"
"console_small_font",
"test_unfinished_tracks",
"no_test_crashes"
};
console_command console_command_table[] = {