diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-12 21:05:12 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-12 21:05:12 +0100 |
commit | 01c95378e1cffe7ef09f44d992a0144d9a5691a4 (patch) | |
tree | 6e797ece1b38c9e86f9d7af6b97cc39fa897347c /src/core | |
parent | fixed a bug (diff) | |
download | re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.gz re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.bz2 re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.lz re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.xz re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.zst re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Fire.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp index c6dece6a..e1be4194 100644 --- a/src/core/Fire.cpp +++ b/src/core/Fire.cpp @@ -90,7 +90,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); |