qboolean oldbadread;
sizebuf_t old;
+ SCR_UpdateLoadingScreenIfShown();
+
// no need if server is local and definitely not if this is a demo
if (!cls.netcon || cls.protocol == PROTOCOL_QUAKEWORLD || cls.signon >= SIGNONS)
return;
static qboolean loadingscreencleared = false;
static float loadingscreenheight = 0;
+void SCR_UpdateLoadingScreenIfShown()
+{
+ if(realtime == loadingscreentime)
+ SCR_UpdateLoadingScreen(loadingscreencleared);
+}
+
void SCR_PushLoadingScreen (qboolean redraw, const char *msg, float len_in_parent)
{
loadingscreenstack_t *s = (loadingscreenstack_t *) Z_Malloc(sizeof(loadingscreenstack_t));
s->absolute_loading_amount_len = 1;
}
- if(redraw && realtime == loadingscreentime)
- SCR_UpdateLoadingScreen(loadingscreencleared);
+ if(redraw)
+ SCR_UpdateLoadingScreenIfShown();
}
void SCR_PopLoadingScreen (qboolean redraw)
s->prev->relative_completion = (s->absolute_loading_amount_min + s->absolute_loading_amount_len - s->prev->absolute_loading_amount_min) / s->prev->absolute_loading_amount_len;
Z_Free(s);
- if(redraw && realtime == loadingscreentime)
- SCR_UpdateLoadingScreen(loadingscreencleared);
+ if(redraw)
+ SCR_UpdateLoadingScreenIfShown();
}
static float SCR_DrawLoadingStack_r(loadingscreenstack_t *s, float y)
// invoke refresh of loading plaque (nothing else seen)
void SCR_UpdateLoadingScreen(qboolean clear);
+void SCR_UpdateLoadingScreenIfShown();
// pushes an item on the loading screen
void SCR_PushLoadingScreen (qboolean redraw, const char *msg, float len_in_parent);