Fixes a crash with demos.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3166 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-04-09 07:19:59 +00:00
parent e71b59bf92
commit 1c644b51e7
1 changed files with 2 additions and 0 deletions

View File

@ -1487,6 +1487,8 @@ void SCR_DrawLoading (void)
Draw_String((vid.width-7*8)/2, y-16, "Loading");
}
if (!total_loading_size)
total_loading_size = 1;
if (loading_stage > LS_CONNECTION)
{
sizex = current_loading_size * 192 / total_loading_size;