mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-04-04 22:10:47 +00:00
Change a bunch of Sys_Error()'s to Host_EndGame()
This commit is contained in:
parent
8bcf348265
commit
bbb594019b
6 changed files with 14 additions and 7 deletions
|
@ -246,7 +246,8 @@ qboolean CL_GetDemoMessage (void)
|
|||
net_message.cursize = LittleLong (net_message.cursize);
|
||||
//Con_Printf("read: %ld bytes\n", net_message.cursize);
|
||||
if (net_message.cursize > MAX_MSGLEN)
|
||||
Sys_Error ("Demo message > MAX_MSGLEN");
|
||||
// Sys_Error ("Demo message > MAX_MSGLEN");
|
||||
Host_EndGame ("Demo message > MAX_MSGLEN");
|
||||
r = fread (net_message.data, net_message.cursize, 1, cls.demofile);
|
||||
if (r != 1)
|
||||
{
|
||||
|
|
|
@ -773,7 +773,8 @@ void CL_ParsePlayerinfo (void)
|
|||
|
||||
num = MSG_ReadByte ();
|
||||
if (num > MAX_CLIENTS)
|
||||
Sys_Error ("CL_ParsePlayerinfo: bad num");
|
||||
// Sys_Error ("CL_ParsePlayerinfo: bad num");
|
||||
Host_EndGame ("CL_ParsePlayerinfo: bad num");
|
||||
|
||||
info = &cl.players[num];
|
||||
|
||||
|
|
|
@ -1039,7 +1039,8 @@ void CL_SetStat (int stat, int value)
|
|||
{
|
||||
int j;
|
||||
if (stat < 0 || stat >= MAX_CL_STATS)
|
||||
Sys_Error ("CL_SetStat: %i is invalid", stat);
|
||||
// Sys_Error ("CL_SetStat: %i is invalid", stat);
|
||||
Host_EndGame ("CL_SetStat: %i is invalid", stat);
|
||||
|
||||
Sbar_Changed ();
|
||||
|
||||
|
@ -1200,7 +1201,8 @@ void CL_ParseServerMessage (void)
|
|||
case svc_lightstyle:
|
||||
i = MSG_ReadByte ();
|
||||
if (i >= MAX_LIGHTSTYLES)
|
||||
Sys_Error ("svc_lightstyle > MAX_LIGHTSTYLES");
|
||||
// Sys_Error ("svc_lightstyle > MAX_LIGHTSTYLES");
|
||||
Host_EndGame ("svc_lightstyle > MAX_LIGHTSTYLES");
|
||||
strcpy (cl_lightstyle[i].map, MSG_ReadString());
|
||||
cl_lightstyle[i].length = strlen(cl_lightstyle[i].map);
|
||||
break;
|
||||
|
|
|
@ -335,7 +335,8 @@ void CL_ParseTEnt (void)
|
|||
break;
|
||||
|
||||
default:
|
||||
Sys_Error ("CL_ParseTEnt: bad type");
|
||||
// Sys_Error ("CL_ParseTEnt: bad type");
|
||||
Host_EndGame ("CL_ParseTEnt: bad type");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,8 @@ void CL_NewTranslation (int slot)
|
|||
char s[512];
|
||||
|
||||
if (slot > MAX_CLIENTS)
|
||||
Sys_Error ("CL_NewTranslation: slot > MAX_CLIENTS");
|
||||
// Sys_Error ("CL_NewTranslation: slot > MAX_CLIENTS");
|
||||
Host_EndGame ("CL_NewTranslation: slot > MAX_CLIENTS");
|
||||
|
||||
player = &cl.players[slot];
|
||||
|
||||
|
|
|
@ -42,7 +42,8 @@ CL_NewTranslation
|
|||
void CL_NewTranslation (int slot)
|
||||
{
|
||||
if (slot > MAX_CLIENTS)
|
||||
Sys_Error ("CL_NewTranslation: slot > MAX_CLIENTS");
|
||||
// Sys_Error ("CL_NewTranslation: slot > MAX_CLIENTS");
|
||||
Host_EndGame ("CL_NewTranslation: slot > MAX_CLIENTS");
|
||||
|
||||
R_TranslatePlayerSkin(slot);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue