Skip to content

Commit

Permalink
Set angle after respawn #59
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggi committed Mar 12, 2017
1 parent ce8607e commit 4229667
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CPlayerData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ bool CPlayerData::Respawn()

// Get the last player stats
CVector vecPosition = m_pPlayer->vecPosition;
float fAngle = m_pPlayer->fAngle;
float fHealth = m_pPlayer->fHealth;
float fArmour = m_pPlayer->fArmour;
WORD wVehicleId = m_pPlayer->wVehicleId;
Expand All @@ -201,6 +202,7 @@ bool CPlayerData::Respawn()
SetArmour(fArmour);
}
SetPosition(vecPosition);
SetAngle(fAngle);
SetSpecialAction(byteSpecialAction);
if (wVehicleId != INVALID_VEHICLE_ID) {
PutInVehicle(wVehicleId, byteSeat);
Expand Down

0 comments on commit 4229667

Please sign in to comment.