Skip to content

Commit

Permalink
Fixed incorrect automap arrow position in multiplayer
Browse files Browse the repository at this point in the history
This caused the player arrows to update at only 35Hz and for the console player's arrow it would lag behind when following.
  • Loading branch information
Boondorl authored and RicardoLuis0 committed Apr 25, 2024
1 parent 7c9c7fa commit 566e03d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/am_map.cpp
Expand Up @@ -2880,7 +2880,8 @@ void DAutomap::drawPlayers ()

if (p->mo != nullptr)
{
DVector3 pos = p->mo->PosRelative(MapPortalGroup);
DVector2 pos = p->mo->InterpolatedPosition(r_viewpoint.TicFrac).XY();
pos += Level->Displacements.getOffset(Level->PointInSector(pos)->PortalGroup, MapPortalGroup);
pt.x = pos.X;
pt.y = pos.Y;

Expand Down

0 comments on commit 566e03d

Please sign in to comment.