mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-09 07:06:47 +00:00
Cubic Lightning
This commit is contained in:
parent
628d9cd127
commit
7ea9945769
1 changed files with 2 additions and 2 deletions
|
|
@ -778,9 +778,9 @@ static inline BlockItReturn_t PIT_LightningShieldAttack(mobj_t *thing)
|
|||
}
|
||||
|
||||
// see if it went over / under
|
||||
if (lightningSource->z > thing->z + thing->height)
|
||||
if (lightningSource->z - lightningDist > thing->z + thing->height)
|
||||
return BMIT_CONTINUE; // overhead
|
||||
if (lightningSource->z + lightningSource->height < thing->z)
|
||||
if (lightningSource->z + lightningSource->height + lightningDist < thing->z)
|
||||
return BMIT_CONTINUE; // underneath
|
||||
|
||||
#if 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue