From 1af78f95a3ccc13cd0904527affefcb784029e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=9F=E9=9B=B2?= Date: Sat, 20 Dec 2025 21:10:59 +0800 Subject: [PATCH] fix: Fix disable Manipulate Rig Slot Machines freeze the game check spin state also while on diasble fix issue #791 --- src/game/features/recovery/Casino.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/features/recovery/Casino.cpp b/src/game/features/recovery/Casino.cpp index b396d7d..6619b4c 100644 --- a/src/game/features/recovery/Casino.cpp +++ b/src/game/features/recovery/Casino.cpp @@ -44,11 +44,11 @@ namespace YimMenu::Features } } } - if (needs_run && *spin_state >= 8 && *spin_state <= 15) + if (needs_run) { for (int slots_iter = 3; slots_iter <= 196; ++slots_iter) { - if (!slots_blacklist.contains(slots_iter)) + if (!slots_blacklist.contains(slots_iter) && *spin_state >= 8 && *spin_state <= 15) { int slot_result = 6; *ScriptLocal("casino_slots"_J, slots_random_results_table + slots_iter).As() = slot_result; @@ -69,10 +69,10 @@ namespace YimMenu::Features { Scripts::ForceScriptHost(Scripts::FindScriptThread("casino_slots"_J)); } - + int* spin_state = ScriptLocal("casino_slots"_J, spin_state_var).As(); for (int slots_iter = 3; slots_iter <= 196; ++slots_iter) { - if (!slots_blacklist.contains(slots_iter)) + if (!slots_blacklist.contains(slots_iter) && *spin_state >= 8 && *spin_state <= 15) { int slot_result = 6; std::srand(static_cast(std::time(0)) + slots_iter); @@ -85,4 +85,4 @@ namespace YimMenu::Features }; static CasinoManipulateRigSlotMachines _CasinoManipulateRigSlotMachines{"casinomanipulaterigslotmachines", "Manipulate Rig Slot Machines", "Lets you win the Rig Slot Machines every time"}; -} \ No newline at end of file +}