From b958981e02e9f9245f70a2c6fcb3aae06780f308 Mon Sep 17 00:00:00 2001 From: HCR-750F <54973190+sch-lda@users.noreply.github.com> Date: Fri, 15 Dec 2023 23:01:36 +0800 Subject: [PATCH] fix(Globals): off radar and fast respawn globals (#2568) --- src/backend/looped/self/fast_respawn.cpp | 4 ++-- src/backend/looped/self/off_radar.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/looped/self/fast_respawn.cpp b/src/backend/looped/self/fast_respawn.cpp index cd912063..2db9a707 100644 --- a/src/backend/looped/self/fast_respawn.cpp +++ b/src/backend/looped/self/fast_respawn.cpp @@ -15,14 +15,14 @@ namespace big *scr_globals::disable_wasted_sound.as() = true; // triggers respawn instantly upon death, has no effect if not respawning so no need to check if the player's dead - misc::set_bit(&(*scr_globals::freemode_properties.at(1685).at(756).as()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)" + misc::set_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)" } virtual void on_disable() override { *scr_globals::disable_wasted_sound.as() = false; - misc::clear_bit(&(*scr_globals::freemode_properties.at(1685).at(756).as()), 1); + misc::clear_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as()), 1); } }; diff --git a/src/backend/looped/self/off_radar.cpp b/src/backend/looped/self/off_radar.cpp index 11284bbb..effd9dd8 100644 --- a/src/backend/looped/self/off_radar.cpp +++ b/src/backend/looped/self/off_radar.cpp @@ -16,7 +16,7 @@ namespace big if (g.self.ghost_org) MISC::SET_BIT(scr_globals::freemode_global.at(4667).as(), 2); scr_globals::globalplayer_bd.as()->Entries[self::id].OffRadarActive = true; - *scr_globals::freemode_properties.at(57).as() = NETWORK::GET_NETWORK_TIME() + 1; + *scr_globals::freemode_properties.at(58).as() = NETWORK::GET_NETWORK_TIME() + 1; } virtual void on_disable() override