summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-13 12:53:27 +0100
committeraap <aap@papnet.eu>2020-12-13 12:53:27 +0100
commite3616c1ce166cffd357aa3e6d376317d5a32efc0 (patch)
tree9967be1f599a952061dce972e3dd22a9eabfaeeb /src/core
parentsome rendering things (diff)
parentfixed replay bugs (diff)
downloadre3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.tar
re3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.tar.gz
re3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.tar.bz2
re3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.tar.lz
re3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.tar.xz
re3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.tar.zst
re3-e3616c1ce166cffd357aa3e6d376317d5a32efc0.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Fire.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp
index a47ca3cf..e73ffea1 100644
--- a/src/core/Fire.cpp
+++ b/src/core/Fire.cpp
@@ -107,7 +107,11 @@ CFire::ProcessFire(void)
}
}
}
- if (!FindPlayerVehicle() && !FindPlayerPed()->m_pFire && !(FindPlayerPed()->bFireProof)
+ if (!FindPlayerVehicle() &&
+#ifdef FIX_BUGS
+ FindPlayerPed() &&
+#endif
+ !FindPlayerPed()->m_pFire && !(FindPlayerPed()->bFireProof)
&& ((FindPlayerPed()->GetPosition() - m_vecPos).MagnitudeSqr() < 2.0f)) {
FindPlayerPed()->DoStuffToGoOnFire();
gFireManager.StartFire(FindPlayerPed(), m_pSource, 0.8f, 1);