mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 20:01:04 +00:00
Clear and draw all game hud hook calls to 1 list
Fixes splitscreen issues with lua hud hooks
This commit is contained in:
parent
a99b2c9974
commit
2cffc9b488
1 changed files with 11 additions and 3 deletions
|
@ -1967,12 +1967,10 @@ static void ST_overlayDrawer(void)
|
|||
{
|
||||
if (renderisnewtic)
|
||||
{
|
||||
LUA_HUD_ClearDrawList(luahuddrawlist_game);
|
||||
LUAh_GameHUD(stplyr, luahuddrawlist_game);
|
||||
}
|
||||
LUA_HUD_DrawList(luahuddrawlist_game);
|
||||
}
|
||||
#endif
|
||||
#endif // HAVE_BLUA
|
||||
|
||||
// draw level title Tails
|
||||
if (*mapheaderinfo[gamemap-1]->lvlttl != '\0' && !(hu_showscores && (netgame || multiplayer) && !mapreset)
|
||||
|
@ -2166,6 +2164,12 @@ void ST_Drawer(void)
|
|||
|
||||
if (st_overlay)
|
||||
{
|
||||
#ifdef HAVE_BLUA
|
||||
if (renderisnewtic)
|
||||
{
|
||||
LUA_HUD_ClearDrawList(luahuddrawlist_game);
|
||||
}
|
||||
#endif // HAVE_BLUA
|
||||
// No deadview!
|
||||
for (i = 0; i <= splitscreen; i++)
|
||||
{
|
||||
|
@ -2173,6 +2177,10 @@ void ST_Drawer(void)
|
|||
ST_overlayDrawer();
|
||||
}
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
LUA_HUD_DrawList(luahuddrawlist_game);
|
||||
#endif // HAVE_BLUA
|
||||
|
||||
// draw Midnight Channel's overlay ontop
|
||||
if (mapheaderinfo[gamemap-1]->typeoflevel & TOL_TV) // Very specific Midnight Channel stuff.
|
||||
ST_MayonakaStatic();
|
||||
|
|
Loading…
Reference in a new issue