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 Christoph Oelckers
parent 347cb724e3
commit 503f716507

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;