Change a bunch of Sys_Error()'s to Host_EndGame()

This commit is contained in:
Anton E. Gavrilov 2000-07-31 12:54:11 +00:00
parent 8bcf348265
commit bbb594019b
6 changed files with 14 additions and 7 deletions

View file

@ -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)
{

View file

@ -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];

View file

@ -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;

View file

@ -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");
}
}

View file

@ -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];

View file

@ -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);
}