summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-19 21:33:17 +0100
committeraap <aap@papnet.eu>2021-01-19 21:33:17 +0100
commit505438cd90b863944c810f54c1608f349c54d4b5 (patch)
tree9149ea355348092c067f1c02da3700dc27769ca5
parentpc radar fix (diff)
parentfix RWLIBS build without GTA_PS2_STUFF (diff)
downloadre3-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
-rw-r--r--src/control/Script4.cpp2
-rw-r--r--src/core/Radar.cpp3
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"