mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-26 21:20:57 +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;
|
int count = 8;
|
||||||
if (radius > 0)
|
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.
|
// we need to take smaller steps.
|
||||||
count += count;
|
count += count;
|
||||||
|
|
Loading…
Reference in a new issue