]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_violence.qc
No need to use a self.owner to determine origin, as the sender entity already copies...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_violence.qc
index 308de2af333d20efc0759c7d3f560f3a621018a8..d1c1982d0341987a24acc15d00e4c61ba6063b39 100644 (file)
@@ -54,7 +54,7 @@ void Violence_GibSplash(entity source, float type, float amount, entity attacker
 float Violence_DamageEffect_SendEntity(entity to, float sf)
 {
        // if the client cannot see the damaged player, don't send to him and waste bandwidth
-       if not(checkpvs(to.origin + to.view_ofs, self.owner))
+       if not(checkpvs(to.origin + to.view_ofs, self))
                return FALSE;
 
        WriteByte(MSG_ENTITY, ENT_CLIENT_DAMAGEEFFECT);
@@ -75,7 +75,6 @@ void Violence_DamageEffect(entity pl, float type)
        e.classname = "damageeffect";
        e.cnt = type;
        e.state |= 8 * pl.species; // gib type, ranges from 0 to 15
-       e.owner = pl;
 
        // if this is a copied dead body, send the num of its player instead
        if(pl.classname == "body")