mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-22 01:01:04 +00:00
- 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:
parent
d6b68dec5e
commit
0fca5b14a2
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue