- Blood: Interpolate x/y/ang coordinates before passing to `DrawOverheadMap()`.

This commit is contained in:
Mitchell Richters 2021-01-02 19:36:46 +11:00
parent fd026edc5c
commit b5e197d9be
1 changed files with 5 additions and 1 deletions

View File

@ -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);
} }