From: Mircea Kitsune Date: Sun, 10 Apr 2011 14:34:36 +0000 (+0300) Subject: No need to use a self.owner to determine origin, as the sender entity already copies... X-Git-Tag: xonotic-v0.6.0~110^2^2~123 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2579e5e423785cb7b77488f0f7e633a587f81ddd;p=xonotic%2Fxonotic-data.pk3dir.git No need to use a self.owner to determine origin, as the sender entity already copies the player's origin. --- diff --git a/qcsrc/server/g_violence.qc b/qcsrc/server/g_violence.qc index 308de2af3..d1c1982d0 100644 --- a/qcsrc/server/g_violence.qc +++ b/qcsrc/server/g_violence.qc @@ -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")