1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Disable unsupported debug options in multiplayer

This commit is contained in:
wolfreak99
2017-02-08 11:47:58 -05:00
committed by Michał Janiszewski
parent 879b8c67e0
commit bee43fc78d

View File

@@ -2965,6 +2965,13 @@ void top_toolbar_init_debug_menu(rct_window* w, rct_widget* widget)
TOP_TOOLBAR_DEBUG_COUNT
);
// Disable items that are not yet available in multiplayer
if (network_get_mode() != NETWORK_MODE_NONE) {
dropdown_set_disabled(DDIDX_OBJECT_SELECTION, true);
dropdown_set_disabled(DDIDX_INVENTIONS_LIST, true);
dropdown_set_disabled(DDIDX_SCENARIO_OPTIONS, true);
}
dropdown_set_checked(DDIDX_DEBUG_PAINT, window_find_by_class(WC_DEBUG_PAINT) != NULL);
gDropdownDefaultIndex = DDIDX_CONSOLE;
}