Skip to content

Commit

Permalink
fix things interpolation with FREEZE cheat in automap (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin authored Jul 12, 2024
1 parent df6c088 commit 80740b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ static void AM_drawPlayers(void)
color = mapcolor_plyr[their_color]; //jff 1/6/98 use default color

// [crispy] interpolate other player arrows
if (uncapped && leveltime > oldleveltime)
if (uncapped && leveltime > oldleveltime && p->mo->interp)
{
pt.x = LerpFixed(p->mo->oldx, p->mo->x) >> FRACTOMAPBITS;
pt.y = LerpFixed(p->mo->oldy, p->mo->y) >> FRACTOMAPBITS;
Expand Down Expand Up @@ -2081,7 +2081,7 @@ static void AM_drawThings
}

// [crispy] interpolate thing triangles movement
if (leveltime > oldleveltime)
if (uncapped && leveltime > oldleveltime && t->interp)
{
pt.x = LerpFixed(t->oldx, t->x) >> FRACTOMAPBITS;
pt.y = LerpFixed(t->oldy, t->y) >> FRACTOMAPBITS;
Expand Down

0 comments on commit 80740b0

Please sign in to comment.