Skip to content

Commit

Permalink
Merge pull request #859 from edge-classic/automap-interpolation-fix
Browse files Browse the repository at this point in the history
Fix automap thing interpolation
  • Loading branch information
dashodanger authored Jan 22, 2025
2 parents 55128d4 + 65c9f89 commit 03cf2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source_files/edge/am_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ static void AutomapDrawPlayer(MapObject *mo)

float mx, my, ma;

if (!paused && !menu_active)
if (!paused && !menu_active && mo->interpolate_)
{
mx = HMM_Lerp(mo->old_x_, fractional_tic, mo->x);
my = HMM_Lerp(mo->old_y_, fractional_tic, mo->y);
Expand Down Expand Up @@ -1162,7 +1162,7 @@ static void AutomapWalkThing(MapObject *mo)

float mx, my, ma;

if (!paused && !menu_active)
if (!paused && !menu_active && mo->interpolate_)
{
mx = HMM_Lerp(mo->old_x_, fractional_tic, mo->x);
my = HMM_Lerp(mo->old_y_, fractional_tic, mo->y);
Expand Down

0 comments on commit 03cf2a8

Please sign in to comment.