- removed the 8 pixel offset for the Scuba Gear in display modes with reduced viewport size.

I have no idea why this was originally done, it makes no sense.
Fixes  #50
This commit is contained in:
Christoph Oelckers 2020-07-27 18:59:05 +02:00
parent 94b445db26
commit 63f4d82aeb

View file

@ -195,16 +195,8 @@ void displaymasks_d(int snum)
if (ps[snum].scuba_on)
{
if (hud_size < 9)
{
hud_drawsprite(44, (200 - 8 - tilesiz[SCUBAMASK].y), 65536, 0, SCUBAMASK, 0, p, 2 + 16);
hud_drawsprite((320 - 43), (200 - 8 - tilesiz[SCUBAMASK].y), 65536, 0, SCUBAMASK, 0, p, 2 + 4 + 16);
}
else
{
hud_drawsprite(44, (200 - tilesiz[SCUBAMASK].y), 65536, 0, SCUBAMASK, 0, p, 2 + 16);
hud_drawsprite((320 - 43), (200 - tilesiz[SCUBAMASK].y), 65536, 0, SCUBAMASK, 0, p, 2 + 4 + 16);
}
hud_drawsprite(44, (200 - tilesiz[SCUBAMASK].y), 65536, 0, SCUBAMASK, 0, p, 2 + 16);
hud_drawsprite((320 - 43), (200 - tilesiz[SCUBAMASK].y), 65536, 0, SCUBAMASK, 0, p, 2 + 4 + 16);
}
}