From 35026837b97d7fd4defea4eab3397ce47bc3d836 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 30 Jan 2012 21:39:46 +0200 Subject: [PATCH] Fix something I forgot in my code. The correct player should be shown now --- data/qcsrc/server/miscfunctions.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.2