mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 08:11:49 +01:00
fix
This commit is contained in:
parent
a06bd7f735
commit
8c1f4ba65d
@ -1417,7 +1417,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
|
|||||||
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
|
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
|
||||||
script_assert(pVehicle);
|
script_assert(pVehicle);
|
||||||
const CVector& pos = pVehicle->GetPosition();
|
const CVector& pos = pVehicle->GetPosition();
|
||||||
float heading = CGeneral::GetATanOfXY(pos.y - *(float*)&ScriptParams[2], pos.x - *(float*)&ScriptParams[1]) + HALFPI;
|
float heading = CGeneral::GetATanOfXY(pos.x - *(float*)&ScriptParams[1], pos.y - *(float*)&ScriptParams[2]) + HALFPI;
|
||||||
if (heading > TWOPI)
|
if (heading > TWOPI)
|
||||||
heading -= TWOPI;
|
heading -= TWOPI;
|
||||||
pVehicle->SetHeading(heading);
|
pVehicle->SetHeading(heading);
|
||||||
|
Loading…
Reference in New Issue
Block a user