mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
fix warnings and only allow cheats in play mode
This commit is contained in:
@@ -403,6 +403,9 @@ static void shortcut_open_cheat_window()
|
||||
{
|
||||
rct_window *window;
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) != SCREEN_FLAGS_PLAYING)
|
||||
return;
|
||||
|
||||
// Check if window is already open
|
||||
window = window_find_by_class(WC_CHEATS);
|
||||
if (window != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user