From fbfc3ee3f58ff21a2fcd14a1958d28ec18c1e2f8 Mon Sep 17 00:00:00 2001 From: Dregu Date: Fri, 23 Aug 2024 11:22:13 +0300 Subject: [PATCH] Fix unlock all upgrades triggering the ghost --- ui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui.cpp b/ui.cpp index e82e744..7440e1e 100644 --- a/ui.cpp +++ b/ui.cpp @@ -581,11 +581,11 @@ void UI::DrawPlayer() { } } { - bool all = (*Max::get().upgrades() & 0x57FFFE07) == 0x57FFFE07; + bool all = (*Max::get().upgrades() & 0x37FFFE07) == 0x37FFFE07; if (ImGui::Checkbox("Unlock all upgrades##UnlockAllUpgrades2", &all) || everything) { if (everything || all) { - *Max::get().upgrades() |= 0x57FFFE07; + *Max::get().upgrades() |= 0x37FFFE07; } else { *Max::get().upgrades() = 0; } @@ -760,10 +760,10 @@ void UI::DrawPlayer() { if (ImGui::CollapsingHeader("Miscellaneous##PlayerMisc")) { ImGui::PushID("PlayerSectionMisc"); DebugPtr(Max::get().upgrades()); - bool all = (*Max::get().upgrades() & 0x57FFFE07) == 0x57FFFE07; + bool all = (*Max::get().upgrades() & 0x17FFFE07) == 0x17FFFE07; if (ImGui::Checkbox("Unlock all upgrades##UnlockAllUpgrades", &all)) { if (all) { - *Max::get().upgrades() |= 0x57FFFE07; + *Max::get().upgrades() |= 0x37FFFE07; } else { *Max::get().upgrades() = 0; }