summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/Stinger.cpp6
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;