diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-02 23:12:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 23:12:54 +0200 |
commit | 7fc33d85f7730c4dc42fbbbd842a95135cda7508 (patch) | |
tree | a6fa86e0be48f39285693c2795053bd997f58dbe /src/control/Script.cpp | |
parent | Revert "Disable PED_SKIN for now" (diff) | |
parent | Add CURMODE macro (diff) | |
download | re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.tar re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.tar.gz re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.tar.bz2 re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.tar.lz re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.tar.xz re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.tar.zst re3-7fc33d85f7730c4dc42fbbbd842a95135cda7508.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index b63a5d87..dbae1f21 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -5250,7 +5250,11 @@ int8 CRunningScript::ProcessCommands600To699(int32 command) return 0; } case COMMAND_GET_CONTROLLER_MODE: +#if defined(GTA_PC) && !defined(DETECT_PAD_INPUT_SWITCH) ScriptParams[0] = 0; +#else + ScriptParams[0] = CPad::IsAffectedByController ? CPad::GetPad(0)->Mode : 0; +#endif StoreParameters(&m_nIp, 1); return 0; case COMMAND_SET_CAN_RESPRAY_CAR: |