mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Blood: Interpolate x/y/ang coordinates before passing to DrawOverheadMap()
.
This commit is contained in:
parent
fd026edc5c
commit
b5e197d9be
1 changed files with 5 additions and 1 deletions
|
@ -489,7 +489,11 @@ static void DrawMap(spritetype* pSprite)
|
||||||
setViewport(Hud_Stbar);
|
setViewport(Hud_Stbar);
|
||||||
tm = 1;
|
tm = 1;
|
||||||
}
|
}
|
||||||
DrawOverheadMap(pSprite->x, pSprite->y, pSprite->ang, gInterpolate);
|
VIEW* pView = &gPrevView[gViewIndex];
|
||||||
|
int x = interpolate(pView->at50, pSprite->x, gInterpolate);
|
||||||
|
int y = interpolate(pView->at54, pSprite->y, gInterpolate);
|
||||||
|
int ang = (!SyncInput() ? gView->angle.sum() : gView->angle.interpolatedsum(gInterpolate)).asbuild();
|
||||||
|
DrawOverheadMap(x, y, ang, gInterpolate);
|
||||||
if (tm)
|
if (tm)
|
||||||
setViewport(hud_size);
|
setViewport(hud_size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue