Skip to content

Commit 83af975

Browse files
authored
grab passenger pos from vehicle pos
eliminating areas for abuse, like in SA-MP server
1 parent f69d18d commit 83af975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/Source/player_pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,10 +1404,10 @@ struct PlayerPool final : public IPlayerPool, public NetworkEventHandler, public
14041404
return false;
14051405
}
14061406

1407+
player.pos_ = vehicle.getPosition();
14071408
player.health_ = passengerSync.HealthArmour.x;
14081409
player.armour_ = passengerSync.HealthArmour.y;
14091410
player.armedWeapon_ = player.areWeaponsAllowed() ? passengerSync.WeaponID : 0;
1410-
player.pos_ = passengerSync.Position;
14111411

14121412
uint32_t newKeys = passengerSync.Keys;
14131413
switch (passengerSync.AdditionalKey)

0 commit comments

Comments
 (0)