]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improved EFFECT_ROCKETMINSTA_LASER.
authorLyberta <lyberta@lyberta.net>
Sun, 8 Apr 2018 21:49:43 +0000 (00:49 +0300)
committerLyberta <lyberta@lyberta.net>
Sun, 8 Apr 2018 21:49:43 +0000 (00:49 +0300)
qcsrc/common/effects/all.inc

index 2114bdd658429aed812160c02b9bff78d9b9912c..3b534ab781d0f7d8a4614a4534fe4f208a28899d 100644 (file)
@@ -258,6 +258,6 @@ entity EFFECT_ROCKETMINSTA_LASER(int teamid)
         case NUM_TEAM_4:    e = EFFECT_ROCKETMINSTA_LASER_PINK; break;
         default:            e = EFFECT_ROCKETMINSTA_LASER_NEUTRAL; break;
     }
-    if (particleeffectnum(e) < 0 || Team_TeamToIndex(teamid) == -1) { e = EFFECT_TR_NEXUIZPLASMA; }
+    if (particleeffectnum(e) < 0 || !Team_IsValidTeam(teamid)) { e = EFFECT_TR_NEXUIZPLASMA; }
     return e;
 }