]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Undo one of my changes with ent num. I think it's best for our code if the body entnu...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Apr 2011 21:33:12 +0000 (00:33 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Apr 2011 21:33:12 +0000 (00:33 +0300)
qcsrc/server/g_violence.qc

index 82b521364cea4ed6cfba9f1b6a38debdf3b14c73..cee0c28a68bf07aa97c9fc3db73b9c584fd77ed3 100644 (file)
@@ -82,13 +82,7 @@ void Violence_DamageEffect(entity pl, float type)
        e.classname = "weapondamage";
        e.cnt = type;
        e.state |= 8 * pl.species; // gib type, ranges from 0 to 15
-
-       // if this is a dead body, send the num of its player
-       if(pl.classname == "body")
-               e.team = num_for_edict(pl.owner);
-       else
-               e.team = num_for_edict(pl);
-
+       e.team = num_for_edict(pl);
        setorigin(e, pl.origin);
 
        Net_LinkEntity(e, FALSE, 0.2, Violence_DamageEffect_SendEntity);