From: TimePath Date: Thu, 15 Oct 2015 06:06:53 +0000 (+1100) Subject: Net_LinkEntity: check against empty strings too X-Git-Tag: xonotic-v0.8.2~1815 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59249aa251a00a2603f22e0bd65944af2507d2fb;p=xonotic%2Fxonotic-data.pk3dir.git Net_LinkEntity: check against empty strings too --- diff --git a/qcsrc/lib/net.qh b/qcsrc/lib/net.qh index 04faffc4a..834de760f 100644 --- a/qcsrc/lib/net.qh +++ b/qcsrc/lib/net.qh @@ -11,9 +11,9 @@ bool SendEntity_self(entity to, int sendflags) { return self.SendEntity3(self, t void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc) { - if (!e.classname) e.classname = "net_linked"; + if (e.classname == "") e.classname = "net_linked"; - if (!e.model || !self.modelindex) { + if (e.model == "" || self.modelindex == 0) { vector mi = e.mins; vector ma = e.maxs; _setmodel(e, "null");