mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-10 15:30:36 +00:00
- Duke: Ensure an uninterpolated angle is sent to DrawOverheadMap()
if playing with unsynchronised input.
This commit is contained in:
parent
22f28477e4
commit
8911805e3a
1 changed files with 2 additions and 2 deletions
|
@ -268,13 +268,13 @@ void drawoverlays(double smoothratio)
|
||||||
{
|
{
|
||||||
cposx = omyx + mulscale16(myx - omyx, smoothratio);
|
cposx = omyx + mulscale16(myx - omyx, smoothratio);
|
||||||
cposy = omyy + mulscale16(myy - omyy, smoothratio);
|
cposy = omyy + mulscale16(myy - omyy, smoothratio);
|
||||||
cang = omyang.asbuild() + mulscale16(((myang.asbuild() + 1024 - omyang.asbuild()) & 2047) - 1024, smoothratio);
|
cang = !SyncInput() ? myang.asbuild() : omyang.asbuild() + mulscale16(((myang.asbuild() + 1024 - omyang.asbuild()) & 2047) - 1024, smoothratio);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cposx = pp->oposx + mulscale16(pp->posx - pp->oposx, smoothratio);
|
cposx = pp->oposx + mulscale16(pp->posx - pp->oposx, smoothratio);
|
||||||
cposy = pp->oposy + mulscale16(pp->posy - pp->oposy, smoothratio);
|
cposy = pp->oposy + mulscale16(pp->posy - pp->oposy, smoothratio);
|
||||||
cang = pp->angle.oang.asbuild() + mulscale16(((pp->angle.ang.asbuild() + 1024 - pp->angle.oang.asbuild()) & 2047) - 1024, smoothratio);
|
cang = !SyncInput() ? pp->angle.ang.asbuild() : pp->angle.oang.asbuild() + mulscale16(((pp->angle.ang.asbuild() + 1024 - pp->angle.oang.asbuild()) & 2047) - 1024, smoothratio);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue