summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-07 11:46:15 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-07 11:46:15 +0200
commitde4323f949accd42264b49e5352ee3522fd575c7 (patch)
treea6fe982655205cb2f7c585a85ba8c6015beb78d5 /src/peds/PlayerPed.cpp
parentNew ped objectives (diff)
parentmaking it close to original (diff)
downloadre3-de4323f949accd42264b49e5352ee3522fd575c7.tar
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.gz
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.bz2
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.lz
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.xz
re3-de4323f949accd42264b49e5352ee3522fd575c7.tar.zst
re3-de4323f949accd42264b49e5352ee3522fd575c7.zip
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r--src/peds/PlayerPed.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 38ba2bf9..08f79c7e 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -40,6 +40,9 @@ CPlayerPed::CPlayerPed(void) : CPed(PEDTYPE_PLAYER1)
{
m_fMoveSpeed = 0.0f;
SetModelIndex(MI_PLAYER);
+#ifdef FIX_BUGS
+ m_fCurrentStamina = m_fMaxStamina = 150.0f;
+#endif
SetInitialState();
m_pWanted = new CWanted();
@@ -56,8 +59,9 @@ CPlayerPed::CPlayerPed(void) : CPed(PEDTYPE_PLAYER1)
m_pPointGunAt = nil;
SetPedState(PED_IDLE);
- m_fMaxStamina = 150.0f;
- m_fCurrentStamina = m_fMaxStamina;
+#ifndef FIX_BUGS
+ m_fCurrentStamina = m_fMaxStamina = 150.0f;
+#endif
m_fStaminaProgress = 0.0f;
m_nEvadeAmount = 0;
m_pEvadingFrom = nil;