]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix something I forgot in my code. The correct player should be shown now
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 30 Jan 2012 19:39:46 +0000 (21:39 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 30 Jan 2012 19:39:46 +0000 (21:39 +0200)
data/qcsrc/server/miscfunctions.qc

index eeb6e6cc4ade7c112efd9c1205d8f4fc6facfcb9..d5be06ccc7cd88045263fe89b410eef5f7733845 100644 (file)
@@ -2463,7 +2463,7 @@ void modeleffect_spawn(string m, float s, float f, vector o, vector v, vector an
 \r
 float portrait_SendEntity(entity to, float sf)\r
 {\r
-       if(to != self.owner)\r
+       if(to != self.enemy)\r
                return FALSE;\r
 \r
        WriteByte(MSG_ENTITY, ENT_CLIENT_PORTRAIT);\r
@@ -2480,7 +2480,8 @@ void portrait(entity pl, entity targ)
        entity e;\r
        e = spawn();\r
        e.classname = "portrait";\r
-       e.owner = targ;\r
+       e.owner = pl;\r
+       e.enemy = targ;\r
 \r
        Net_LinkEntity(e, FALSE, 0.1, portrait_SendEntity);\r
 }\r