summaryrefslogtreecommitdiffstats
path: root/src/entities/Physical.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-23 01:01:21 +0200
committeraap <aap@papnet.eu>2019-06-23 01:01:21 +0200
commit047fa20f28890176e0d86191b3a9fd459d967785 (patch)
tree78d7ce0c5ad0546648643fb8b2c901efee74d5e5 /src/entities/Physical.cpp
parentFixed little bug in Radar.cpp. (diff)
downloadre3-047fa20f28890176e0d86191b3a9fd459d967785.tar
re3-047fa20f28890176e0d86191b3a9fd459d967785.tar.gz
re3-047fa20f28890176e0d86191b3a9fd459d967785.tar.bz2
re3-047fa20f28890176e0d86191b3a9fd459d967785.tar.lz
re3-047fa20f28890176e0d86191b3a9fd459d967785.tar.xz
re3-047fa20f28890176e0d86191b3a9fd459d967785.tar.zst
re3-047fa20f28890176e0d86191b3a9fd459d967785.zip
Diffstat (limited to 'src/entities/Physical.cpp')
-rw-r--r--src/entities/Physical.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index f2693a68..adc53525 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -1790,7 +1790,7 @@ CPhysical::ProcessCollision(void)
if(IsPed() && (distSq >= sq(0.2f) || ped->IsPlayer())){
if(ped->IsPlayer())
- n = min(NUMSTEPS(0.2f), 2.0);
+ n = max(NUMSTEPS(0.2f), 2.0);
else
n = NUMSTEPS(0.3f);
step = savedTimeStep / n;