mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 02:09:00 +00:00
More stinger fix
This commit is contained in:
parent
fa7334c74f
commit
9b47625115
1 changed files with 4 additions and 2 deletions
|
@ -98,8 +98,10 @@ CStinger::Deploy(CPed *pPed)
|
||||||
void
|
void
|
||||||
CStinger::CheckForBurstTyres()
|
CStinger::CheckForBurstTyres()
|
||||||
{
|
{
|
||||||
const CVector firstPos = pSpikes[0]->GetPosition();
|
CVector firstPos = pSpikes[0]->GetPosition();
|
||||||
const CVector lastPos = pSpikes[NUM_STINGER_SEGMENTS - 1]->GetPosition();
|
firstPos.z += 0.2f;
|
||||||
|
CVector lastPos = pSpikes[NUM_STINGER_SEGMENTS - 1]->GetPosition();
|
||||||
|
lastPos.z += 0.2f;
|
||||||
float dist = (lastPos - firstPos).Magnitude();
|
float dist = (lastPos - firstPos).Magnitude();
|
||||||
if (dist < 0.1f) return;
|
if (dist < 0.1f) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue