- SW: Ensure automap uses untouched interpolated actor position.

* Using chase cam while the automap was on was drawing the player sprite incorrectly.
This commit is contained in:
Mitchell Richters 2023-03-17 13:45:29 +11:00
parent d6b68dec5e
commit 0fca5b14a2

View file

@ -1246,6 +1246,7 @@ void drawscreen(PLAYER* pp, double interpfrac, bool sceneonly)
// Get initial player position, interpolating if required.
DVector3 tpos = camerapp->actor->getRenderPos(interpfrac);
DVector2 ampos = tpos.XY();
DRotator tangles = camerapp->Angles.getRenderAngles(interpfrac);
sectortype* tsect = camerapp->cursector;
@ -1333,7 +1334,7 @@ void drawscreen(PLAYER* pp, double interpfrac, bool sceneonly)
}
}
}
DrawOverheadMap(tpos.XY(), tangles.Yaw, interpfrac);
DrawOverheadMap(ampos, tangles.Yaw, interpfrac);
}
SWSpriteIterator it;