1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Fix entity quaternion properties.

Vector flag enumeration was used instead of Quaternion flag enumeration.
This commit is contained in:
Sandu Liviu Catalin 2022-03-22 21:11:17 +02:00
parent a2421afca1
commit b3f9f9e47a

View File

@ -250,10 +250,10 @@ void LgEntityQuaternion::Set()
case LgEntityType::Vehicle: case LgEntityType::Vehicle:
switch (mFlag) switch (mFlag)
{ {
case LgVehicleVectorFlag::Angle: case LgVehicleQuaternionFlag::Angle:
_Func->SetVehicleRotation(mID, x, y, z, w); _Func->SetVehicleRotation(mID, x, y, z, w);
break; break;
case LgVehicleVectorFlag::SpawnAngle: case LgVehicleQuaternionFlag::SpawnAngle:
_Func->SetVehicleSpawnRotation(mID, x, y, z, w); _Func->SetVehicleSpawnRotation(mID, x, y, z, w);
break; break;
default: break; default: break;