1
0
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:
Sandu Liviu Catalin 2020-12-21 12:20:30 +02:00
parent f9054e53aa
commit efe0748d67
4 changed files with 4 additions and 4 deletions

View File

@ -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);
}
// ------------------------------------------------------------------------------------------------

View File

@ -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);
}
// ------------------------------------------------------------------------------------------------

View File

@ -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);
}
// ------------------------------------------------------------------------------------------------

View File

@ -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));
}
// ------------------------------------------------------------------------------------------------