mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-22 17:01:08 +00:00
- Exhumed: Clamp off vale in fix from adbd5c3c69
.
* Fixes example situations where the player is underwater and smashing against the ceiling, etc.
This commit is contained in:
parent
742d76a4bf
commit
ef81e713e2
1 changed files with 2 additions and 2 deletions
|
@ -367,8 +367,8 @@ Collision movespritez(DExhumedActor* pActor, double z, double height, double cli
|
|||
else if ((destZ - height) < sprceiling && (hiHit.type == kHitSprite || pActor->sector()->pAbove == nullptr))
|
||||
{
|
||||
destZ = sprceiling + height;
|
||||
pActor->spr.pos.Z = pActor->opos.Z = destZ;
|
||||
pActor->spr.pos.Z += z;
|
||||
pActor->opos.Z = destZ;
|
||||
pActor->spr.pos.Z = max(destZ + z, destZ);
|
||||
nRet.exbits |= kHitAux1;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue