actually call the init/shutdown handlers
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Mon, 25 Jan 2010 17:06:39 +0000 (17:06 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Mon, 25 Jan 2010 17:06:39 +0000 (17:06 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8557 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/cl_client.qc
data/qcsrc/server/g_world.qc

index 73fb1d6..c23c93d 100644 (file)
@@ -1517,6 +1517,8 @@ void ClientConnect (void)
        }
        else if(cvar("sv_teamnagger") && !g_ca) // teamnagger is currently bad for ca
                send_CSQC_teamnagger();
+
+       CheatInitClient();
 }
 
 /*
@@ -1537,6 +1539,8 @@ void ClientDisconnect (void)
                return;
        }
 
+       CheatShutdownClient();
+
        if(self.hitplotfh >= 0)
        {
                fclose(self.hitplotfh);
index e650f15..544f46d 100644 (file)
@@ -677,6 +677,8 @@ void spawnfunc_worldspawn (void)
        RandomSeed_Spawn();
        PingPLReport_Spawn();
 
+       CheatInit();
+
        localcmd("\n_sv_hook_gamestart ", GetGametype(), ";");
 
        world_initialized = 1;
@@ -2711,6 +2713,7 @@ void SV_Shutdown()
                        db_save(ServerProgsDB, "server.db");
                if(cvar("developer"))
                        db_save(TemporaryDB, "server-temp.db");
+               CheatShutdown(); // must be after cheatcount check
                db_close(ServerProgsDB);
                db_close(TemporaryDB);
                print("done!\n");