summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-27 15:04:05 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-28 16:04:34 +0200
commit429f6b03c44fe1df791865d976b456321b273859 (patch)
treed6086ec4cd97d717d1b43dbf69be7e085dbab1cc /src/vehicles
parentMerge pull request #664 from aap/miami (diff)
downloadre3-429f6b03c44fe1df791865d976b456321b273859.tar
re3-429f6b03c44fe1df791865d976b456321b273859.tar.gz
re3-429f6b03c44fe1df791865d976b456321b273859.tar.bz2
re3-429f6b03c44fe1df791865d976b456321b273859.tar.lz
re3-429f6b03c44fe1df791865d976b456321b273859.tar.xz
re3-429f6b03c44fe1df791865d976b456321b273859.tar.zst
re3-429f6b03c44fe1df791865d976b456321b273859.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Heli.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Heli.cpp b/src/vehicles/Heli.cpp
index 408fb8f9..00bb0023 100644
--- a/src/vehicles/Heli.cpp
+++ b/src/vehicles/Heli.cpp
@@ -731,12 +731,12 @@ CHeli::SendDownSwat(void)
float groundZ = CWorld::FindGroundZFor3DCoord(pos.x, pos.y, pos.z, nil);
if(Abs(FindPlayerCoors().z - groundZ) < 2.5f && CRopes::RegisterRope((uintptr)this + m_numSwat-1, pos, false)){
- CCopPed *swat = (CCopPed*)CPopulation::AddPed(PEDTYPE_COP, COP_ARMY, pos);
+ CCopPed *swat = (CCopPed*)CPopulation::AddPed(PEDTYPE_COP, COP_HELI_SWAT, pos);
swat->bUsesCollision = false;
swat->m_pRopeEntity = this;
RegisterReference(&swat->m_pRopeEntity);
m_numSwat--;
- swat->m_nRopeID = m_numSwat;
+ swat->m_nRopeID = (uintptr)this + m_numSwat;
m_aSwatState[m_numSwat] = 255;
CAnimManager::BlendAnimation(swat->GetClump(), ASSOCGRP_STD, ANIM_ABSEIL, 4.0f);
return true;