fix getting stuck with loading plaque upon loading bad saves using menu

also change bad save versions to Host_Error and change a Sys_Error into
Host_Error.
This commit is contained in:
Ozkan Sezer 2022-04-23 11:03:20 +03:00
parent c0cfba160d
commit ae4bf378c0
1 changed files with 3 additions and 3 deletions

View File

@ -1177,7 +1177,7 @@ static void Host_Loadgame_f (void)
{
free (start);
start = NULL;
Con_Printf ("Savegame is version %i, not %i\n", version, SAVEGAME_VERSION);
Host_Error ("Savegame is version %i, not %i", version, SAVEGAME_VERSION);
return;
}
data = COM_ParseStringNewline (data);
@ -1200,6 +1200,7 @@ static void Host_Loadgame_f (void)
{
free (start);
start = NULL;
SCR_EndLoadingPlaque ();
Con_Printf ("Couldn't load map\n");
return;
}
@ -1207,7 +1208,6 @@ static void Host_Loadgame_f (void)
sv.loadgame = true;
// load the light styles
for (i = 0; i < MAX_LIGHTSTYLES; i++)
{
data = COM_ParseStringNewline (data);
@ -1223,7 +1223,7 @@ static void Host_Loadgame_f (void)
break; // end of file
if (strcmp(com_token,"{"))
{
Sys_Error ("First token isn't a brace");
Host_Error ("First token isn't a brace");
}
if (entnum == -1)