summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-12 23:28:13 +0100
committeraap <aap@papnet.eu>2021-01-12 23:28:13 +0100
commitfaab9f4aa47b216c979ad7fdbac0eae8beb940fd (patch)
tree9b47c3e211ea7fb5b7b779f2490b72665ebfbb4f /src
parentProcessWheel bug (diff)
downloadre3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.tar
re3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.tar.gz
re3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.tar.bz2
re3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.tar.lz
re3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.tar.xz
re3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.tar.zst
re3-faab9f4aa47b216c979ad7fdbac0eae8beb940fd.zip
Diffstat (limited to 'src')
-rw-r--r--src/render/Fluff.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Fluff.cpp b/src/render/Fluff.cpp
index 157be0c8..30e271fb 100644
--- a/src/render/Fluff.cpp
+++ b/src/render/Fluff.cpp
@@ -935,7 +935,7 @@ CEscalator::AddThisOne(CVector pos0, CVector pos1, CVector pos2, CVector pos3, b
m_lowerEnd = magnitudes[0] / length;
m_upperEnd = (magnitudes[0] + magnitudes[1]) / length;
- m_stepsCount = Max(24.0f, length / 0.6f);
+ m_stepsCount = Min(24.0f, length / 0.6f);
CVector direction(m_pos0.x - m_pos1.x, m_pos0.y - m_pos1.y, 0.0f);
direction.Normalise();