- perform the stepping adjustment for FastProjectiles in 3D.

Not checking the z-Axis means that they might pass through 3D floors without noticing at steep angles and very high speeds.
This commit is contained in:
Christoph Oelckers 2018-02-28 18:26:25 +01:00
parent 425f1408f7
commit 3a3cd87ce0

View file

@ -66,7 +66,7 @@ class FastProjectile : Actor
int count = 8;
if (radius > 0)
{
while ( abs(Vel.X) > radius * count || abs(Vel.Y) > radius * count)
while ( abs(Vel.X) >= radius * count || abs(Vel.Y) >= radius * count || abs(Vel.Z) >= height * count)
{
// we need to take smaller steps.
count += count;