mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Fix SetPositionZ
in entities. Z axis would be used as both X and Z instead of just Z. Probably resulting in weird behavior.
This commit is contained in:
parent
f9054e53aa
commit
efe0748d67
@ -362,7 +362,7 @@ void CCheckpoint::SetPositionZ(Float32 z) const
|
||||
// Retrieve the current values for unchanged components
|
||||
_Func->GetCheckPointPosition(m_ID, &x, &y, &dummy);
|
||||
// Perform the requested operation
|
||||
_Func->SetCheckPointPosition(m_ID, z, y, z);
|
||||
_Func->SetCheckPointPosition(m_ID, x, y, z);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@ -520,7 +520,7 @@ void CObject::SetPositionZ(Float32 z) const
|
||||
// Retrieve the current values for unchanged components
|
||||
_Func->GetObjectPosition(m_ID, &x, &y, &dummy);
|
||||
// Perform the requested operation
|
||||
_Func->SetObjectPosition(m_ID, z, y, z);
|
||||
_Func->SetObjectPosition(m_ID, x, y, z);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@ -2048,7 +2048,7 @@ void CPlayer::SetPositionZ(Float32 z) const
|
||||
// Retrieve the current values for unchanged components
|
||||
_Func->GetPlayerPosition(m_ID, &x, &y, &dummy);
|
||||
// Perform the requested operation
|
||||
_Func->SetPlayerPosition(m_ID, z, y, z);
|
||||
_Func->SetPlayerPosition(m_ID, x, y, z);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@ -1467,7 +1467,7 @@ void CVehicle::SetPositionZ(Float32 z) const
|
||||
// Retrieve the current values for unchanged components
|
||||
_Func->GetVehiclePosition(m_ID, &x, &y, &dummy);
|
||||
// Perform the requested operation
|
||||
_Func->SetVehiclePosition(m_ID, z, y, z, static_cast< uint8_t >(false));
|
||||
_Func->SetVehiclePosition(m_ID, x, y, z, static_cast< uint8_t >(false));
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user