From b32d4cbba2ddd9a266c633b0e784eab57ee1ad31 Mon Sep 17 00:00:00 2001 From: Suzie Date: Tue, 28 May 2024 20:09:45 -0400 Subject: [PATCH] Change check to use gamestate instead of gamemode. --- SA2InstantWinButton/SA2InstantWinButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SA2InstantWinButton/SA2InstantWinButton.cpp b/SA2InstantWinButton/SA2InstantWinButton.cpp index 1d72f00..813729a 100644 --- a/SA2InstantWinButton/SA2InstantWinButton.cpp +++ b/SA2InstantWinButton/SA2InstantWinButton.cpp @@ -8,7 +8,7 @@ extern "C" { __declspec(dllexport) void OnFrame() { - if (GameMode == GameMode_Level && (ControllerPointers[0]->press & Buttons_X)) + if (GameState == GameStates_Ingame && (ControllerPointers[0]->press & Buttons_X)) { if (ControllerPointers[0]->press & Buttons_B) AwardWin(1);