From 99910641076d793f0bbf9e1aaaaa55d0311d5e59 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Sun, 20 Feb 2022 15:47:53 +0600 Subject: [PATCH] Fixed teleport crash and going under map in mount chiliad --- src/teleport.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/teleport.cpp b/src/teleport.cpp index 073d9fb..4961654 100644 --- a/src/teleport.cpp +++ b/src/teleport.cpp @@ -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) {