]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile.
authorRudolf Polzer <divverent@xonotic.org>
Thu, 25 Sep 2014 16:25:58 +0000 (18:25 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 25 Sep 2014 16:25:58 +0000 (18:25 +0200)
qcsrc/client/miscfunctions.qc
qcsrc/server/mutators/gamemode_nexball.qc

index 1abf39e4fdc493d228faac919d18efdeeda0e602..4b00f1290856bff5ce90a15a243cb41b0700fafc 100644 (file)
@@ -603,20 +603,6 @@ float getplayeralpha(float pl)
        return 1;
 }
 
-vector getcsqcplayercolor(float pl)
-{
-       entity e;
-
-       e = CSQCModel_server2csqc(pl);
-       if(e)
-       {
-               if(e.colormap > 0)
-                       return colormapPaletteColor(((e.colormap >= 1024) ? e.colormap : stof(getplayerkeyvalue(e.colormap - 1, "colors"))) & 0x0F, TRUE);
-       }
-
-       return '1 1 1';
-}
-
 float getplayerisdead(float pl)
 {
        entity e;
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
                /*