diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-09-02 20:03:02 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-09-02 20:03:02 +0200 |
commit | 9b47625115ffe103f3e1de07d75e35c8aee97698 (patch) | |
tree | c3a8b1884cfd00de54540e56aa8f355fec6cc1b5 /src/objects | |
parent | Stinger fixes (diff) | |
download | re3-9b47625115ffe103f3e1de07d75e35c8aee97698.tar re3-9b47625115ffe103f3e1de07d75e35c8aee97698.tar.gz re3-9b47625115ffe103f3e1de07d75e35c8aee97698.tar.bz2 re3-9b47625115ffe103f3e1de07d75e35c8aee97698.tar.lz re3-9b47625115ffe103f3e1de07d75e35c8aee97698.tar.xz re3-9b47625115ffe103f3e1de07d75e35c8aee97698.tar.zst re3-9b47625115ffe103f3e1de07d75e35c8aee97698.zip |
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/Stinger.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/objects/Stinger.cpp b/src/objects/Stinger.cpp index 857791dc..f33125ee 100644 --- a/src/objects/Stinger.cpp +++ b/src/objects/Stinger.cpp @@ -98,8 +98,10 @@ CStinger::Deploy(CPed *pPed) void CStinger::CheckForBurstTyres() { - const CVector firstPos = pSpikes[0]->GetPosition(); - const CVector lastPos = pSpikes[NUM_STINGER_SEGMENTS - 1]->GetPosition(); + CVector firstPos = pSpikes[0]->GetPosition(); + firstPos.z += 0.2f; + CVector lastPos = pSpikes[NUM_STINGER_SEGMENTS - 1]->GetPosition(); + lastPos.z += 0.2f; float dist = (lastPos - firstPos).Magnitude(); if (dist < 0.1f) return; |