mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
move ST_doPaletteStuff() from ST_Drawer() to ST_Ticker() (#791)
Thanks @JNechaevsky
This commit is contained in:
parent
473febad55
commit
7e6d90c01a
@ -779,12 +779,16 @@ void ST_updateWidgets(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ST_doPaletteStuff(void);
|
||||||
|
|
||||||
void ST_Ticker(void)
|
void ST_Ticker(void)
|
||||||
{
|
{
|
||||||
st_clock++;
|
st_clock++;
|
||||||
st_randomnumber = M_Random();
|
st_randomnumber = M_Random();
|
||||||
ST_updateWidgets();
|
ST_updateWidgets();
|
||||||
st_oldhealth = plyr->health;
|
st_oldhealth = plyr->health;
|
||||||
|
|
||||||
|
ST_doPaletteStuff(); // Do red-/gold-shifts from damage/items
|
||||||
}
|
}
|
||||||
|
|
||||||
static int st_palette = 0;
|
static int st_palette = 0;
|
||||||
@ -977,8 +981,6 @@ void ST_Drawer(boolean fullscreen, boolean refresh)
|
|||||||
|
|
||||||
ST_MoveHud();
|
ST_MoveHud();
|
||||||
|
|
||||||
ST_doPaletteStuff(); // Do red-/gold-shifts from damage/items
|
|
||||||
|
|
||||||
if (st_firsttime)
|
if (st_firsttime)
|
||||||
ST_doRefresh(); // If just after ST_Start(), refresh all
|
ST_doRefresh(); // If just after ST_Start(), refresh all
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user