Fixed teleport crash and going under map in mount chiliad
This commit is contained in:
parent
e8c709a4dd
commit
9991064107
@ -104,7 +104,7 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, int interior_id)
|
||||
}
|
||||
CEntity* pPlayerEntity = FindPlayerEntity(-1);
|
||||
pos = targetBlip.m_vPosition;
|
||||
pos.z = CWorld::FindGroundZFor3DCoord(pos.x, pos.y, 1000, nullptr, &pPlayerEntity) + 50.f;
|
||||
pos.z = CWorld::FindGroundZFor3DCoord(pos.x, pos.y, 1000, nullptr, &pPlayerEntity) + 500.f;
|
||||
|
||||
m_Teleport::m_fPos = pos;
|
||||
m_Teleport::m_nTimer = CTimer::m_snTimeInMilliseconds;
|
||||
@ -124,11 +124,6 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, int interior_id)
|
||||
|
||||
#ifdef GTASA
|
||||
|
||||
if (CModelInfo::IsTrainModel(pVeh->m_nModelIndex))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if (pVeh && pPlayer->m_nPedFlags.bInVehicle)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user