fix crash with Q2 server, server/client handles Q2 map checksum, server sets Q2 airaccelerate on init

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2177 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-04-08 05:43:53 +00:00
parent 1adb96907a
commit e40c7f8a87
4 changed files with 30 additions and 3 deletions

View file

@ -2286,6 +2286,18 @@ void CLQ2_ParseConfigString (void)
// if (cl.refresh_prepped && strcmp(olds, s))
CLQ2_ParseClientinfo (i-Q2CS_PLAYERSKINS, s);
}
else if (i == Q2CS_MAPCHECKSUM)
{
extern int map_checksum;
int serverchecksum = atoi(s);
if (cl.worldmodel && (cl.worldmodel->fromgame == fg_quake2 || cl.worldmodel->fromgame == fg_quake3))
{
// the Q2 client normally exits here, however for our purposes we might as well ignore it
if (map_checksum != serverchecksum)
Con_Printf(S_WARNING "WARNING: Client checksum does not match server checksum (%i != %i)", map_checksum, serverchecksum);
}
}
#ifdef VM_UI
UI_StringChanged(i);