]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Small cleanup
authorterencehill <piuntn@gmail.com>
Mon, 3 Dec 2012 17:36:53 +0000 (18:36 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 3 Dec 2012 17:36:53 +0000 (18:36 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc

index 198bc3cc805a1104022e0d6b201d73495ed89efb..efc3d8f9d58200d405600b53013036d1f45032d9 100644 (file)
@@ -390,14 +390,16 @@ MUTATOR_HOOKFUNCTION(freezetag_PlayerPreThink)
                return 1;
 
        if(self.freezetag_frozen)
+       {
                // keep health = 1
                self.pauseregen_finished = time + autocvar_g_balance_pause_health_regen;
 
-       if(self.freezetag_frozen_timeout && time >= self.freezetag_frozen_timeout)
-       {
-               self.health = autocvar_g_balance_health_start;
-               freezetag_Unfreeze(world);
-               return 1;
+               if(self.freezetag_frozen_timeout && time >= self.freezetag_frozen_timeout)
+               {
+                       self.health = autocvar_g_balance_health_start;
+                       freezetag_Unfreeze(world);
+                       return 1;
+               }
        }
        if(next_round || (time > warmup - autocvar_g_freezetag_warmup && time < warmup))
                return 1; // already waiting for next round to start