From e3659f7d732ee4b564af752529bc6f0c3b489e8d Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 19 Jun 2005 00:59:52 +0000 Subject: [PATCH] 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 --- sv_main.c | 2 ++ 1 file changed, 2 insertions(+) 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]; -- 2.39.2