"Rocket Flying" mutator: also affect the Mine Layer
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 9 Nov 2010 09:14:43 +0000 (10:14 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 9 Nov 2010 09:14:43 +0000 (10:14 +0100)
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator_rocketflying.qc

index 08550a1..b074164 100644 (file)
@@ -1184,7 +1184,7 @@ void readlevelcvars(void)
                MUTATOR_ADD(mutator_nix);
        if(cvar("g_dodging"))
                MUTATOR_ADD(mutator_dodging);
-       if(cvar("g_rocket_flying") || (cvar("g_balance_rocketlauncher_detonatedelay") == 0 && stof(cvar_defstring("g_balance_rocketlauncher_detonatedelay")) != 0))
+       if(cvar("g_rocket_flying"))
                MUTATOR_ADD(mutator_rocketflying);
 
     g_bugrigs = cvar("g_bugrigs");
index d1957b0..03a5bde 100644 (file)
@@ -1,6 +1,6 @@
 MUTATOR_HOOKFUNCTION(rocketflying_EditProjectile)
 {
-       if(other.classname == "rocket")
+       if(other.classname == "rocket" || other.classname == "mine")
        {
                // kill detonate delay of rockets
                other.spawnshieldtime = time;