mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- added velocity checks when attempting to dive or surface.
This could misbehave at low velocities that could be misinterpreted as a boundary crossing due to the missing check for the movement direction.
This commit is contained in:
parent
5aa832f536
commit
4f9718e8a8
1 changed files with 2 additions and 2 deletions
|
@ -1936,10 +1936,10 @@ void movetransports_d(void)
|
|||
|
||||
{
|
||||
warpspriteto = 0;
|
||||
if (ll && sectlotag == 2 && act2->spr.pos.Z < (sectp->ceilingz + ll))
|
||||
if (ll && sectlotag == 2 && act2->spr.pos.Z < (sectp->ceilingz + ll) && act2->vel.Z < 0)
|
||||
warpspriteto = 1;
|
||||
|
||||
if (ll && sectlotag == 1 && act2->spr.pos.Z > (sectp->floorz - ll))
|
||||
if (ll && sectlotag == 1 && act2->spr.pos.Z > (sectp->floorz - ll) && act2->vel.Z > 0)
|
||||
warpspriteto = 1;
|
||||
|
||||
if (sectlotag == 0 && (onfloorz || abs(act2->spr.pos.Z - act->spr.pos.Z) < 16))
|
||||
|
|
Loading…
Reference in a new issue