Silently update invented items when using Inventions List in-game

This commit is contained in:
Gymnasiast 2015-08-12 16:21:16 +02:00
parent e9637978a1
commit d04d2f5069
1 changed files with 7 additions and 0 deletions

View File

@ -554,6 +554,13 @@ void window_editor_inventions_list_open()
*/
static void window_editor_inventions_list_close(rct_window *w)
{
// When used in-game (as a cheat)
if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_EDITOR)) {
gSilentResearch = true;
sub_684AC3();
gSilentResearch = false;
}
sub_685A79();
}