mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- Blood: Fix velocity issues in MoveThing()
, such as explosive bundles not sliding along the ground.
* Merge with or above `- parts of Blood's MoveThing`.
This commit is contained in:
parent
a6eec404db
commit
f69e977411
1 changed files with 2 additions and 2 deletions
|
@ -4693,7 +4693,7 @@ static Collision MoveThing(DBloodActor* actor)
|
|||
if (bottom >= floorZ)
|
||||
{
|
||||
double nVel = actor->vel.XY().Length();
|
||||
int nVelClipped = min(nVel, FixedToFloat(0x11111));
|
||||
double nVelClipped = min(nVel, (16. / 15.));
|
||||
Collision& coll = floorColl;
|
||||
|
||||
if (coll.type == kHitSprite)
|
||||
|
@ -4707,7 +4707,7 @@ static Collision MoveThing(DBloodActor* actor)
|
|||
}
|
||||
if (nVel > 0)
|
||||
{
|
||||
actor->vel.XY() *= nVelClipped / nVel;
|
||||
actor->vel.XY() -= actor->vel.XY() * nVelClipped / nVel;
|
||||
}
|
||||
}
|
||||
if (actor->vel.X != 0 || actor->vel.Y != 0)
|
||||
|
|
Loading…
Reference in a new issue