diff options
author | aap <aap@papnet.eu> | 2021-01-19 21:33:17 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-19 21:33:17 +0100 |
commit | 505438cd90b863944c810f54c1608f349c54d4b5 (patch) | |
tree | 9149ea355348092c067f1c02da3700dc27769ca5 /src | |
parent | pc radar fix (diff) | |
parent | fix RWLIBS build without GTA_PS2_STUFF (diff) | |
download | re3-505438cd90b863944c810f54c1608f349c54d4b5.tar re3-505438cd90b863944c810f54c1608f349c54d4b5.tar.gz re3-505438cd90b863944c810f54c1608f349c54d4b5.tar.bz2 re3-505438cd90b863944c810f54c1608f349c54d4b5.tar.lz re3-505438cd90b863944c810f54c1608f349c54d4b5.tar.xz re3-505438cd90b863944c810f54c1608f349c54d4b5.tar.zst re3-505438cd90b863944c810f54c1608f349c54d4b5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script4.cpp | 2 | ||||
-rw-r--r-- | src/core/Radar.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp index 6fea8807..40f9f2f1 100644 --- a/src/control/Script4.cpp +++ b/src/control/Script4.cpp @@ -1418,7 +1418,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command) CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]); script_assert(pVehicle); 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) heading -= TWOPI; pVehicle->SetHeading(heading); diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp index a5acdfad..a905522b 100644 --- a/src/core/Radar.cpp +++ b/src/core/Radar.cpp @@ -1,3 +1,6 @@ +#if !defined(GTA_PS2_STUFF) && defined(RWLIBS) +#define WITHD3D +#endif #include "config.h" #include "common.h" |