Fixed incorrect automap arrow position in multiplayer

This caused the player arrows to update at only 35Hz and for the console player's arrow it would lag behind when following.
This commit is contained in:
Boondorl 2024-04-25 12:55:26 -04:00 committed by Ricardo Luís Vaz Silva
parent 7c9c7fa1f7
commit 566e03da60

View file

@ -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;