]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix per-species effectnum
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 20:02:47 +0000 (23:02 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 20:02:47 +0000 (23:02 +0300)
qcsrc/client/gibs.qc

index 8a0f055f16112c46949ec00eeef1624b16ce9b3d..37d6e85e3e02c4abd57b60cdf0f652a0b6a6df4b 100644 (file)
@@ -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);