]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix another game over check; remove some redundant checks
authorterencehill <piuntn@gmail.com>
Wed, 4 Jan 2017 22:03:56 +0000 (23:03 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 4 Jan 2017 22:03:56 +0000 (23:03 +0100)
qcsrc/common/mutators/mutator/nades/nades.qc
qcsrc/server/miscfunctions.qc

index 627321ea0224ae6cc37c2fb6e2aa29a20a8c708d..413dd99f59c1ee0fde9706d9a4900c3954a5496f 100644 (file)
@@ -769,7 +769,6 @@ void nade_touch(entity this, entity toucher)
        if(autocvar_g_nades_pickup)
        if(time >= this.spawnshieldtime)
        if(!toucher.nade && this.health == this.max_health) // no boosted shot pickups, thank you very much
-       if(!STAT(FROZEN, toucher))
        if(CanThrowNade(toucher)) // prevent some obvious things, like dead players
        if(IS_REAL_CLIENT(toucher)) // above checks for IS_PLAYER, don't need to do it here
        {
@@ -1106,9 +1105,6 @@ bool CanThrowNade(entity this)
        if(this.vehicle)
                return false;
 
-       if(game_stopped)
-               return false;
-
        if(IS_DEAD(this))
                return false;
 
index 6e2fdfc0f6d0e48fac4c99f03b39eecbfd727092..9d0b85385ccbfa1a18383a05908ab9929f725a1d 100644 (file)
@@ -479,7 +479,7 @@ void GetCvars(entity this, int f)
 string playername(entity p)
 {
     string t;
-    if (teamplay && !game_stopped && IS_PLAYER(p))
+    if (teamplay && !intermission_running && IS_PLAYER(p))
     {
         t = Team_ColorCode(p.team);
         return strcat(t, strdecolorize(p.netname));