summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-06 12:31:09 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-06 12:31:09 +0200
commit3f26250d73d5c196a66262821a7980ccdbd8deed (patch)
tree6dde51e7159bee42448d95fca35edc8e0be92561 /src/peds/PlayerPed.cpp
parentfixed linux saving (diff)
downloadre3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.gz
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.bz2
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.lz
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.xz
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.zst
re3-3f26250d73d5c196a66262821a7980ccdbd8deed.zip
Diffstat (limited to '')
-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 305c329e..6613ea1b 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -35,6 +35,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();
@@ -46,8 +49,9 @@ CPlayerPed::CPlayerPed(void) : CPed(PEDTYPE_PLAYER1)
m_bSpeedTimerFlag = false;
m_pPointGunAt = nil;
m_nPedState = 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;
field_1367 = 0;