move ST_doPaletteStuff() from ST_Drawer() to ST_Ticker() (#791)

Thanks @JNechaevsky
This commit is contained in:
Fabian Greffrath 2022-11-04 11:29:38 +01:00 committed by GitHub
parent 473febad55
commit 7e6d90c01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,12 +779,16 @@ void ST_updateWidgets(void)
}
void ST_doPaletteStuff(void);
void ST_Ticker(void)
{
st_clock++;
st_randomnumber = M_Random();
ST_updateWidgets();
st_oldhealth = plyr->health;
ST_doPaletteStuff(); // Do red-/gold-shifts from damage/items
}
static int st_palette = 0;
@ -977,8 +981,6 @@ void ST_Drawer(boolean fullscreen, boolean refresh)
ST_MoveHud();
ST_doPaletteStuff(); // Do red-/gold-shifts from damage/items
if (st_firsttime)
ST_doRefresh(); // If just after ST_Start(), refresh all
else