]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
before calling SetNewParms qc function, set self to world to intentionally cause...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 19 Jun 2005 00:59:52 +0000 (00:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 19 Jun 2005 00:59:52 +0000 (00:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5445 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 1d87bb9d23f1c74a069e26394d489a708e3353b7..4b43a8997c82529f5a9ab7d3432f8a400bd67812 100644 (file)
--- 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 ; i<NUM_SPAWN_PARMS ; i++)
                        client->spawn_parms[i] = (&prog->globals.server->parm1)[i];