summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-02 23:11:02 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-02 23:11:02 +0200
commitd2712afc788e59973b5331eb8d10870239d803e4 (patch)
tree705e8da955b7b338002f2caa6e61fa2761918b02 /src/control
parentFix COMMAND_GET_CONTROLLER_MODE (diff)
downloadre3-d2712afc788e59973b5331eb8d10870239d803e4.tar
re3-d2712afc788e59973b5331eb8d10870239d803e4.tar.gz
re3-d2712afc788e59973b5331eb8d10870239d803e4.tar.bz2
re3-d2712afc788e59973b5331eb8d10870239d803e4.tar.lz
re3-d2712afc788e59973b5331eb8d10870239d803e4.tar.xz
re3-d2712afc788e59973b5331eb8d10870239d803e4.tar.zst
re3-d2712afc788e59973b5331eb8d10870239d803e4.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 3e06fcfb..dbae1f21 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -5253,7 +5253,7 @@ int8 CRunningScript::ProcessCommands600To699(int32 command)
#if defined(GTA_PC) && !defined(DETECT_PAD_INPUT_SWITCH)
ScriptParams[0] = 0;
#else
- ScriptParams[0] = CPad::GetPad(0)->Mode;
+ ScriptParams[0] = CPad::IsAffectedByController ? CPad::GetPad(0)->Mode : 0;
#endif
StoreParameters(&m_nIp, 1);
return 0;