- WHaven: fixed automap HUD display.

This commit is contained in:
Christoph Oelckers 2021-11-28 20:01:00 +01:00
parent 9ea035ad2d
commit 0ccf2bb9ef
3 changed files with 8 additions and 6 deletions

View file

@ -299,8 +299,8 @@ void HWDrawInfo::DispatchSprites()
if ((tspr->cstat & CSTAT_SPRITE_ALIGNMENT) != CSTAT_SPRITE_ALIGNMENT_SLAB && tiletovox[tspr->picnum] >= 0 && voxmodels[tiletovox[tspr->picnum]])
{
HWSprite hwsprite;
int num = tiletovox[tspr->picnum];
if (hwsprite.ProcessVoxel(this, voxmodels[tiletovox[tspr->picnum]], tspr, &sector[tspr->sectnum], voxrotate[num]))
int num = tiletovox[tilenum];
if (hwsprite.ProcessVoxel(this, voxmodels[num], tspr, &sector[tspr->sectnum], voxrotate[num]))
continue;
}
else if ((tspr->cstat & CSTAT_SPRITE_ALIGNMENT) == CSTAT_SPRITE_ALIGNMENT_SLAB && tspr->picnum < MAXVOXELS && voxmodels[tspr->picnum])

View file

@ -108,16 +108,17 @@ void drawscreen(int num, double dasmoothratio, bool sceneonly)
if (!sceneonly)
{
if (automapMode != am_off)
{
DrawOverheadMap(cposx, cposy, cang.asbuild(), dasmoothratio);
}
applyflash();
if (!plr.over_shoulder_on)
{
DrawHud(dasmoothratio);
}
if (automapMode != am_off)
{
DrawOverheadMap(cposx, cposy, cang.asbuild(), dasmoothratio);
}
}
RestoreInterpolations();
}

View file

@ -479,6 +479,7 @@ class WHStatusBar : RazeStatusBar
stats.spacing = stats.fontScale * SmallFont.GetHeight() + 1;
stats.screenbottomspace = bottomy;
stats.statfont = SmallFont;
stats.altspacing = stats.spacing;
if (automapMode == am_full)
{