From 3f5185e0a9ff2d13a2560b892b415fddc1c00fe3 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 5 Oct 2015 19:44:48 +1000 Subject: [PATCH] Match master --- qcsrc/common/nades.qh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/nades.qh b/qcsrc/common/nades.qh index ef43f746c..be9d353f3 100644 --- a/qcsrc/common/nades.qh +++ b/qcsrc/common/nades.qh @@ -114,6 +114,12 @@ entity Nade_FromProjectile(float proj) entity Nade_TrailEffect(int proj, int nade_team) { + switch (proj) + { + case PROJECTILE_NADE: return EFFECT_NADE_TRAIL(nade_team); + case PROJECTILE_NADE_BURN: return EFFECT_NADE_TRAIL_BURN(nade_team); + } + FOREACH(NADES, true, LAMBDA( for (int j = 0; j < 2; j++) { @@ -125,11 +131,7 @@ entity Nade_TrailEffect(int proj, int nade_team) } } )); - switch (proj) - { - case PROJECTILE_NADE: return EFFECT_NADE_TRAIL(nade_team); - case PROJECTILE_NADE_BURN: return EFFECT_NADE_TRAIL_BURN(nade_team); - } + return EFFECT_Null; } -- 2.39.2