- Exhumed: 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 14:11:27 +11:00
parent 0fca5b14a2
commit 742a2e5c9a

View file

@ -250,6 +250,8 @@ void DrawView(double interpfrac, bool sceneonly)
}
}
const auto ampos = nCamerapos.XY();
if (nSnakeCam >= 0 && !sceneonly)
{
nCameraangles.Pitch = nullAngle;
@ -379,7 +381,7 @@ void DrawView(double interpfrac, bool sceneonly)
}
}
DrawMap(nCamerapos.XY(), nCameraangles.Yaw, interpfrac);
DrawMap(ampos, nCameraangles.Yaw, interpfrac);
}
}
else