1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-13 01:29:16 +00:00

More stinger fix

This commit is contained in:
Sergeanur 2020-09-02 21:03:02 +03:00
parent fa7334c74f
commit 9b47625115

View file

@ -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;