- Duke: Fix interpolation issues with player's XY coordinates while drawing using the sprite.

This commit is contained in:
Mitchell Richters 2022-11-15 21:25:13 +11:00 committed by Christoph Oelckers
parent 9972c65842
commit 202137ed69
2 changed files with 2 additions and 2 deletions

View file

@ -3073,7 +3073,7 @@ void move_d(DDukeActor *actor, int playernum, int xvel)
{
if ((badguy(actor) && actor->spr.extra <= 0) || (actor->opos.X != actor->spr.pos.X) || (actor->opos.Y != actor->spr.pos.Y))
{
actor->backupvec2();
if (actor->spr.picnum != APLAYER) actor->backupvec2();
SetActor(actor, actor->spr.pos);
}
return;

View file

@ -3307,7 +3307,7 @@ void move_r(DDukeActor *actor, int pnum, int xvel)
{
if ((badguy(actor) && actor->spr.extra <= 0) || (actor->opos.X != actor->spr.pos.X) || (actor->opos.Y != actor->spr.pos.Y))
{
actor->backupvec2();
if (actor->spr.picnum != APLAYER) actor->backupvec2();
SetActor(actor, actor->spr.pos);
}
if (badguy(actor) && actor->spr.extra <= 0)