summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-06-30 02:31:10 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2021-07-03 00:28:32 +0200
commit70fa7fc239f9ec09eda218531f240e92d26d5d3a (patch)
tree3e1d587a5cb7b9c4e6d22214ba3cb393eec2c6a9 /src/peds/PlayerPed.cpp
parentRefactor OnscreenTimer (diff)
downloadre3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.tar
re3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.tar.gz
re3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.tar.bz2
re3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.tar.lz
re3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.tar.xz
re3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.tar.zst
re3-70fa7fc239f9ec09eda218531f240e92d26d5d3a.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PlayerPed.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index a67e2abc..93a403bd 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -682,8 +682,8 @@ CPlayerPed::PlayerControlFighter(CPad *padUsed)
if (padMove > 0.0f) {
m_fRotationDest = CGeneral::GetRadianAngleBetweenPoints(0.0f, 0.0f, -leftRight, upDown) - TheCamera.Orientation;
- m_takeAStepAfterAttack = padMove > 2 * PAD_MOVE_TO_GAME_WORLD_MOVE;
- if (padUsed->GetSprint() && padMove > 1 * PAD_MOVE_TO_GAME_WORLD_MOVE)
+ m_takeAStepAfterAttack = padMove > (2 * PAD_MOVE_TO_GAME_WORLD_MOVE);
+ if (padUsed->GetSprint() && padMove > (1 * PAD_MOVE_TO_GAME_WORLD_MOVE))
bIsAttacking = false;
}