From: MirceaKitsune Date: Sun, 29 Jan 2012 20:54:14 +0000 (+0200) Subject: Simplify server code for portraits X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=9a8c5c1086b8acf507e30a07e9f5c52ac1733c7f;p=voretournament%2Fvoretournament.git Simplify server code for portraits --- diff --git a/data/qcsrc/server/miscfunctions.qc b/data/qcsrc/server/miscfunctions.qc index 2d7de74f..eeb6e6cc 100644 --- a/data/qcsrc/server/miscfunctions.qc +++ b/data/qcsrc/server/miscfunctions.qc @@ -2468,9 +2468,9 @@ float portrait_SendEntity(entity to, float sf) WriteByte(MSG_ENTITY, ENT_CLIENT_PORTRAIT); - WriteString(MSG_ENTITY, self.model); - WriteByte(MSG_ENTITY, self.skin); - WriteString(MSG_ENTITY, self.netname); + WriteString(MSG_ENTITY, self.owner.model); + WriteByte(MSG_ENTITY, self.owner.skin); + WriteString(MSG_ENTITY, self.owner.netname); return TRUE; } @@ -2480,9 +2480,6 @@ void portrait(entity pl, entity targ) entity e; e = spawn(); e.classname = "portrait"; - setmodel(e, pl.model); - e.skin = pl.skin; - e.netname = pl.netname; e.owner = targ; Net_LinkEntity(e, FALSE, 0.1, portrait_SendEntity);