]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_keepaway.qc
mapinfo: remove some IS_GAMETYPE macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_keepaway.qc
index 61289b58f48099d3565c76c86c97b88c87d37282..f96aada3ee09ac8506edb8661d116229ca8be63f 100644 (file)
@@ -421,8 +421,6 @@ MUTATOR_HOOKFUNCTION(ka, DropSpecialItems)
 
 void ka_SpawnBall() // loads various values for the ball, runs only once at start of match
 {
-       if(!g_keepaway) { return; }
-
        entity e;
        e = spawn();
        e.model = "models/orbs/orbblue.md3";
@@ -456,15 +454,12 @@ void ka_ScoreRules()
 
 void ka_Initialize() // run at the start of a match, initiates game mode
 {
-       if(!g_keepaway)
-               return;
-
        ka_ScoreRules();
        ka_SpawnBall();
 }
 
 
-REGISTER_MUTATOR(ka, g_keepaway)
+REGISTER_MUTATOR(ka, IS_GAMETYPE(KEEPAWAY))
 {
        MUTATOR_ONADD
        {