summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-02-05 12:45:03 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-02-05 12:45:03 +0100
commit102d105e0a50f829c6085a2e95082aedb7727b41 (patch)
tree5b0cdf15f0efaf80b169721bf0664e28679a8d65 /src
parentfixed plane AI (diff)
downloadre3-102d105e0a50f829c6085a2e95082aedb7727b41.tar
re3-102d105e0a50f829c6085a2e95082aedb7727b41.tar.gz
re3-102d105e0a50f829c6085a2e95082aedb7727b41.tar.bz2
re3-102d105e0a50f829c6085a2e95082aedb7727b41.tar.lz
re3-102d105e0a50f829c6085a2e95082aedb7727b41.tar.xz
re3-102d105e0a50f829c6085a2e95082aedb7727b41.tar.zst
re3-102d105e0a50f829c6085a2e95082aedb7727b41.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script7.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script7.cpp b/src/control/Script7.cpp
index 34a364a7..71099cc4 100644
--- a/src/control/Script7.cpp
+++ b/src/control/Script7.cpp
@@ -431,12 +431,12 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
script_assert(pPed);
if (ScriptParams[1]) {
- pPed->bIsDucking = true;
+ pPed->bCrouchWhenShooting = true;
pPed->SetDuck(ScriptParams[2], true);
}
else {
pPed->ClearDuck(true);
- pPed->bIsDucking = false;
+ pPed->bCrouchWhenShooting = false;
}
return 0;
}