]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_nexball.qc
Fix compile.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_nexball.qc
index bcd880b698c5c47b657b8a98f1f8264b0c10ffb9..176fb1eac5e9fcee4270c01fdc705dd25e28d3f8 100644 (file)
@@ -976,7 +976,7 @@ MUTATOR_HOOKFUNCTION(nexball_SetStartItems)
 
 MUTATOR_HOOKFUNCTION(nexball_ForbidThrowing)
 {
-       if(self.weapon == WEP_GRENADE_LAUNCHER)
+       if(self.weapon == WEP_MORTAR)
                return TRUE;
 
        return FALSE;
@@ -985,7 +985,7 @@ MUTATOR_HOOKFUNCTION(nexball_ForbidThrowing)
 MUTATOR_HOOKFUNCTION(nexball_FilterItem)
 {
        if(self.classname == "droppedweapon")
-       if(self.weapon == WEP_GRENADE_LAUNCHER)
+       if(self.weapon == WEP_MORTAR)
                return TRUE;
 
        return FALSE;
@@ -1011,7 +1011,7 @@ MUTATOR_DEFINITION(gamemode_nexball)
                g_nexball_meter_period = rint(g_nexball_meter_period * 32) / 32; //Round to 1/32ths to send as a byte multiplied by 32
                addstat(STAT_NB_METERSTART, AS_FLOAT, metertime);
 
-               w_porto(WR_PRECACHE); // abuse
+               W_Porto(WR_INIT); // abuse
 
                // General settings
                /*