From: havoc Date: Sun, 19 Jun 2005 00:59:52 +0000 (+0000) Subject: before calling SetNewParms qc function, set self to world to intentionally cause... X-Git-Tag: xonotic-v0.1.0preview~4738 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3659f7d732ee4b564af752529bc6f0c3b489e8d;p=xonotic%2Fdarkplaces.git before calling SetNewParms qc function, set self to world to intentionally cause errors with broken SetNewParms code in some mods git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5445 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 1d87bb9d..4b43a899 100644 --- a/sv_main.c +++ b/sv_main.c @@ -408,6 +408,8 @@ void SV_ConnectClient (int clientnum, netconn_t *netconnection) else { // call the progs to get default spawn parms for the new client + // set self to world to intentionally cause errors with broken SetNewParms code in some mods + prog->globals.server->self = 0; PRVM_ExecuteProgram (prog->globals.server->SetNewParms, "QC function SetNewParms is missing"); for (i=0 ; ispawn_parms[i] = (&prog->globals.server->parm1)[i];