From: MirceaKitsune Date: Mon, 30 Jan 2012 19:39:46 +0000 (+0200) Subject: Fix something I forgot in my code. The correct player should be shown now X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=35026837b97d7fd4defea4eab3397ce47bc3d836;p=voretournament%2Fvoretournament.git Fix something I forgot in my code. The correct player should be shown now --- diff --git a/data/qcsrc/server/miscfunctions.qc b/data/qcsrc/server/miscfunctions.qc index eeb6e6cc..d5be06cc 100644 --- a/data/qcsrc/server/miscfunctions.qc +++ b/data/qcsrc/server/miscfunctions.qc @@ -2463,7 +2463,7 @@ void modeleffect_spawn(string m, float s, float f, vector o, vector v, vector an float portrait_SendEntity(entity to, float sf) { - if(to != self.owner) + if(to != self.enemy) return FALSE; WriteByte(MSG_ENTITY, ENT_CLIENT_PORTRAIT); @@ -2480,7 +2480,8 @@ void portrait(entity pl, entity targ) entity e; e = spawn(); e.classname = "portrait"; - e.owner = targ; + e.owner = pl; + e.enemy = targ; Net_LinkEntity(e, FALSE, 0.1, portrait_SendEntity); }