summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-06 15:36:26 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-06 15:36:26 +0200
commite099aaaa6b7aa90a632d785c6f83a1fbb110cdd9 (patch)
treea91957b7694c340763d94f16ee5304a549373bb9 /src
parentfixing some uninitialized stuff (diff)
downloadre3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.tar
re3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.tar.gz
re3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.tar.bz2
re3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.tar.lz
re3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.tar.xz
re3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.tar.zst
re3-e099aaaa6b7aa90a632d785c6f83a1fbb110cdd9.zip
Diffstat (limited to '')
-rw-r--r--src/entities/Physical.cpp4
-rw-r--r--src/peds/Ped.cpp3
-rw-r--r--src/vehicles/Vehicle.cpp2
3 files changed, 8 insertions, 1 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index f76c3e29..e89b4858 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -21,6 +21,10 @@ CPhysical::CPhysical(void)
{
int i;
+#ifdef FIX_BUGS
+ m_nLastTimeCollided = 0;
+#endif
+
m_fForceMultiplier = 1.0f;
m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
m_vecTurnSpeed = CVector(0.0f, 0.0f, 0.0f);
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 4e9280e6..254f89a6 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -243,6 +243,9 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
m_nPedState = PED_IDLE;
m_nLastPedState = PED_NONE;
m_nMoveState = PEDMOVE_STILL;
+#ifdef FIX_BUGS
+ m_nPrevMoveState = PEDMOVE_NONE;
+#endif
m_nStoredMoveState = PEDMOVE_NONE;
m_pFire = nil;
m_pPointGunAt = nil;
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index addbfc3d..eb6c8d6d 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -99,7 +99,7 @@ CVehicle::CVehicle(uint8 CreatedBy)
m_numPedsUseItAsCover = 0;
bIsCarParkVehicle = false;
bHasAlreadyBeenRecorded = false;
- m_bSirenOrAlarm = 0;
+ m_bSirenOrAlarm = false;
m_nCarHornTimer = 0;
m_nCarHornPattern = 0;
m_nAlarmState = 0;