mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- 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:
parent
425f1408f7
commit
3a3cd87ce0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue