Skip to content

Commit 0ee554b

Browse files
committed
Fix ped falling off bike desync bug
Bug was caused by 5dd446b
1 parent dcadaa7 commit 0ee554b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,13 +1512,15 @@ void CClientPed::WarpIntoVehicle(CClientVehicle* pVehicle, unsigned int uiSeat)
15121512

15131513
RemoveTargetPosition();
15141514

1515+
if (!pVehicle->IsStreamedIn() || !m_pPlayerPed)
1516+
SetWarpInToVehicleRequired(true);
1517+
15151518
// Make peds stream in when they warp to a vehicle
15161519
CVector vecInVehiclePosition;
15171520
GetPosition(vecInVehiclePosition);
15181521
UpdateStreamPosition(vecInVehiclePosition);
15191522
if (pVehicle->IsStreamedIn() && !m_pPlayerPed)
15201523
StreamIn(true);
1521-
SetWarpInToVehicleRequired(true);
15221524
}
15231525

15241526
void CClientPed::ResetToOutOfVehicleWeapon()

0 commit comments

Comments
 (0)