summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-28 21:58:16 +0100
committeraap <aap@papnet.eu>2020-12-28 21:58:16 +0100
commitf7e52d7a21ced8bd0fbb2a62f3231ed8386d7175 (patch)
treedebb50cfbed9d587d931de0838a28a32165ef20f /src
parentmultiple instances sema fix (diff)
downloadre3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.tar
re3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.tar.gz
re3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.tar.bz2
re3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.tar.lz
re3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.tar.xz
re3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.tar.zst
re3-f7e52d7a21ced8bd0fbb2a62f3231ed8386d7175.zip
Diffstat (limited to 'src')
-rw-r--r--src/extras/screendroplets.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/extras/screendroplets.cpp b/src/extras/screendroplets.cpp
index 9ac60d4f..6ea72f09 100644
--- a/src/extras/screendroplets.cpp
+++ b/src/extras/screendroplets.cpp
@@ -12,6 +12,7 @@
#include "RwHelper.h"
#include "Timer.h"
#include "Camera.h"
+#include "World.h"
#include "ZoneCull.h"
#include "Weather.h"
#include "ParticleObject.h"
@@ -416,7 +417,8 @@ ScreenDroplets::ProcessCameraMovement(void)
uint16 mode = TheCamera.Cams[TheCamera.ActiveCam].Mode;
bool isTopDown = mode == CCam::MODE_TOPDOWN || mode == CCam::MODE_GTACLASSIC || mode == CCam::MODE_TOP_DOWN_PED;
- bool isLookingInDirection = CPad::GetPad(0)->GetLookBehindForCar() || CPad::GetPad(0)->GetLookLeft() || CPad::GetPad(0)->GetLookRight();
+ bool isLookingInDirection = FindPlayerVehicle() && mode == CCam::MODE_1STPERSON &&
+ (CPad::GetPad(0)->GetLookBehindForCar() || CPad::GetPad(0)->GetLookLeft() || CPad::GetPad(0)->GetLookRight());
ms_enabled = !isTopDown && !isLookingInDirection;
ms_movingEnabled = !isTopDown && !isLookingInDirection;