1
0
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:
IntelOrca
2014-12-09 19:55:17 +00:00
parent 726fd9ef1d
commit bfafc0e149
3 changed files with 18 additions and 12 deletions

View File

@@ -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) {