mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Match CPlayerPed::StartGoggles; retail writes the HasGoggles test out inline
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user