From: Mircea Kitsune Date: Sat, 2 Apr 2011 20:02:47 +0000 (+0300) Subject: Fix per-species effectnum X-Git-Tag: xonotic-v0.6.0~110^2^2~171 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af1d5e9fe214334c1e6bf66e0db9afa5ef9682bb;p=xonotic%2Fxonotic-data.pk3dir.git Fix per-species effectnum --- diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 8a0f055f1..37d6e85e3 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -300,7 +300,8 @@ void Ent_DamageEffect() // If the weapon is a bullet weapon, its damage effect is blood. // Since blood is species dependent, we make this effect per-species. if(type == WEP_SHOTGUN || type == WEP_UZI || type == WEP_SNIPERRIFLE) - effectnum = strcat(effectnum, specstr); + if(specstr != "") + effectnum = strcat(effectnum, "_", specstr); dprint(strcat("Origin is: ", vtos(org), " and weapon is: ", e.netname, " and species is: ", specstr, "\n")); pointparticles(particleeffectnum(effectnum), org, '0 0 0', 1);