From 686bb11b7aa712c0dde87a02ebc956b80581231f Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Thu, 3 Sep 2026 00:15:05 +0700 Subject: [PATCH] [saco] Match `CPlayerPed::StartGoggles`; retail writes the `HasGoggles` test out inline --- saco/game/playerped.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 812870a..3bd58fb 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -1057,7 +1057,8 @@ BOOL CPlayerPed::IsInJetpackMode() void CPlayerPed::StartGoggles() { - if (HasGoggles()) return; + // retail writes the HasGoggles test out inline + if (m_pPed && (m_pPed->dwActiveVision != 0 || m_bGoggleState)) return; if (FindWeaponSlot( 44 ) == NULL && FindWeaponSlot( 45 ) == NULL) GiveWeapon( 44, 1 ); // Prevents crashing due to lack of animations.