mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- add_int_pos in MoveDude
This commit is contained in:
parent
fb2c4efa2f
commit
de38eb4dab
1 changed files with 2 additions and 1 deletions
|
@ -4745,7 +4745,7 @@ void MoveDude(DBloodActor* actor)
|
|||
{
|
||||
if (pPlayer && gNoClip)
|
||||
{
|
||||
actor->add_int_pos({ actor->int_vel().X >> 12, actor->int_vel().Y >> 12, 0 });
|
||||
actor->spr.pos += actor->vel.XY();
|
||||
updatesector(actor->spr.pos, &pSector);
|
||||
if (!pSector) pSector = actor->sector();
|
||||
}
|
||||
|
@ -4753,6 +4753,7 @@ void MoveDude(DBloodActor* actor)
|
|||
{
|
||||
auto bakCstat = actor->spr.cstat;
|
||||
actor->spr.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
|
||||
// Note: vel is Q16.16, ClipMove wants Q28.4, which passes it on to clipmove which wants Q14.18. Anyone confused yet...?
|
||||
ClipMove(actor->spr.pos, &pSector, actor->int_vel().X >> 12, actor->int_vel().Y >> 12, wd, tz, bz, CLIPMASK0, actor->hit.hit);
|
||||
if (pSector == nullptr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue