summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-07 03:15:10 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-07 03:15:10 +0200
commit1c0189979965cb237aa5fb300a5522e1408123ac (patch)
tree791f188c7d4f87111bf3235b87f4b74e2fbebf9e /src/peds/PlayerPed.cpp
parentCBike done (diff)
parentFONT_BANK renamed to FONT_STANDARD (diff)
downloadre3-1c0189979965cb237aa5fb300a5522e1408123ac.tar
re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.gz
re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.bz2
re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.lz
re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.xz
re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.zst
re3-1c0189979965cb237aa5fb300a5522e1408123ac.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;