summaryrefslogtreecommitdiffstats
path: root/src/render/Glass.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-14 20:47:15 +0200
committerRoman Masanin <36927roma@gmail.com>2020-09-14 20:47:15 +0200
commit97550b4fd90cf1c3e9704ac03295475a3a21b01c (patch)
tree2f415a4829c705e6a2cdfb033ad861bf448aa7e5 /src/render/Glass.cpp
parentfinish work on ProcessPlayerVehicleEngine and cleanup (diff)
parentMove a bunch of math to cpp files + small fixes (diff)
downloadre3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar
re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.gz
re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.bz2
re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.lz
re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.xz
re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.zst
re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.zip
Diffstat (limited to 'src/render/Glass.cpp')
-rw-r--r--src/render/Glass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Glass.cpp b/src/render/Glass.cpp
index ee36bad3..c52d49bd 100644
--- a/src/render/Glass.cpp
+++ b/src/render/Glass.cpp
@@ -700,7 +700,7 @@ CGlass::WindowRespondsToExplosion(CEntity *entity, CVector point)
if ( fDistToGlass < 10.0f )
{
- distToGlass.Normalise(0.3f);
+ distToGlass *= (0.3f / fDistToGlass); // normalise
WindowRespondsToCollision(object, 10000.0f, distToGlass, object->GetPosition(), true);
}
else