]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Lets ACTUALLY CALL the MatchEnd mutator hook, this way it... works.
authorSamual Lenks <samual@xonotic.org>
Mon, 31 Dec 2012 18:39:38 +0000 (13:39 -0500)
committerSamual Lenks <samual@xonotic.org>
Mon, 31 Dec 2012 18:39:38 +0000 (13:39 -0500)
qcsrc/server/g_world.qc
qcsrc/server/mutators/gamemode_ctf.qc

index dc615afb6285b116009ef39c1372bd0e3016f216..8698b1753884f7e06e23ea4dd0890f41ee0af179 100644 (file)
@@ -1613,6 +1613,8 @@ void NextLevel()
        if(autocvar_g_campaign)
                CampaignPreIntermission();
 
+       MUTATOR_CALLHOOK(MatchEnd);
+
        localcmd("\nsv_hook_gameend\n");
 }
 
index 5d97b2af955d0ac00c66924277b90fb4f5eccbce..908d81cf3fe0a9d96b13a1c529a8db568f5008a9 100644 (file)
@@ -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;
                        }