mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- Exhumed: Interpolate x/y/ang coordinates before passing to DrawOverheadMap()
.
This commit is contained in:
parent
aef6fddd3f
commit
2ec79ad581
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ void DrawMap(double const smoothratio)
|
|||
{
|
||||
if (!nFreeze && automapMode != am_off)
|
||||
{
|
||||
DrawOverheadMap(initx, inity, inita, smoothratio);
|
||||
int x = PlayerList[nLocalPlayer].opos.x + MulScale(initx - PlayerList[nLocalPlayer].opos.x, smoothratio, 16);
|
||||
int y = PlayerList[nLocalPlayer].opos.y + MulScale(inity - PlayerList[nLocalPlayer].opos.y, smoothratio, 16);
|
||||
int ang = (!SyncInput() ? PlayerList[nLocalPlayer].angle.sum() : PlayerList[nLocalPlayer].angle.interpolatedsum(smoothratio)).asbuild();
|
||||
DrawOverheadMap(x, y, ang, smoothratio);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue