Dedicated: dont create or destroy ANY lua hud drawlist
not needed at all in dedi
This commit is contained in:
1 parent
30acdca9d3
commit
93eb2b336d
2 files changed
+9
-5
No files matched your search
+4
-2
@@ -100,7 +100,7 @@ static char hu_tick;
|
||||
static tic_t hu_emoteanim = 0;
|
||||
emote_autocomplete_t emote_autocomplete = {0};
|
||||
|
||||
static huddrawlist_h luahuddrawlist_scores;
|
||||
static huddrawlist_h luahuddrawlist_scores = NULL;
|
||||
|
||||
patch_t *rflagico = NULL;
|
||||
patch_t *bflagico = NULL;
|
||||
@@ -411,8 +411,10 @@ void HU_Init(void)
|
||||
// set shift translation table
|
||||
shiftxform = english_shiftxform;
|
||||
|
||||
luahuddrawlist_scores = LUA_HUD_CreateDrawList();
|
||||
if (dedicated || rendermode == render_none)
|
||||
return;
|
||||
|
||||
luahuddrawlist_scores = LUA_HUD_CreateDrawList();
|
||||
HU_LoadGraphics();
|
||||
}
|
||||
|
||||
|
||||
+5
-3
@@ -780,14 +780,16 @@ void Y_StartIntermission(void)
|
||||
Y_CalculateMatchData(0, Y_CompareRace);
|
||||
break;
|
||||
}
|
||||
|
||||
case int_none:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
LUA_HUD_DestroyDrawList(luahuddrawlist_intermission);
|
||||
luahuddrawlist_intermission = LUA_HUD_CreateDrawList();
|
||||
if (rendermode != render_none)
|
||||
{
|
||||
LUA_HUD_DestroyDrawList(luahuddrawlist_intermission);
|
||||
luahuddrawlist_intermission = LUA_HUD_CreateDrawList();
|
||||
}
|
||||
}
|
||||
|
||||
// ======
|
||||
|
||||
Reference in new issue
Block a user