From: Samual Lenks Date: Mon, 31 Dec 2012 18:39:38 +0000 (-0500) Subject: Lets ACTUALLY CALL the MatchEnd mutator hook, this way it... works. X-Git-Tag: xonotic-v0.7.0~147 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b20f4ecd0bf2cca195a6f69a4abda569ac3c714;p=xonotic%2Fxonotic-data.pk3dir.git Lets ACTUALLY CALL the MatchEnd mutator hook, this way it... works. --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index dc615afb6..8698b1753 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -1613,6 +1613,8 @@ void NextLevel() if(autocvar_g_campaign) CampaignPreIntermission(); + MUTATOR_CALLHOOK(MatchEnd); + localcmd("\nsv_hook_gameend\n"); } diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index 5d97b2af9..908d81cf3 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -1985,7 +1985,7 @@ MUTATOR_HOOKFUNCTION(ctf_MatchEnd) flag.solid = SOLID_NOT; flag.nextthink = FALSE; // stop thinking - print("stopping the ", flag.netname, " from moving.\n"); + //dprint("stopping the ", flag.netname, " from moving.\n"); break; }