X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Flib%2Fnet.qh;h=de6525fe9e01c0de20225c2604fcf9aa131d5182;hb=2e4b6fcb1aec544934a31bd49bba5eeecaffbf86;hp=ff18f0eaf34594393a1016eda44b3918ff443a5d;hpb=784ed7e054583264723e7638b3f6817a87cf3de7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/net.qh b/qcsrc/lib/net.qh index ff18f0eaf..de6525fe9 100644 --- a/qcsrc/lib/net.qh +++ b/qcsrc/lib/net.qh @@ -2,10 +2,14 @@ #define NET_H #ifdef SVQC +.int Version; // deprecated, use SendFlags .int SendFlags; .bool(entity to, int sendflags) SendEntity; +.bool(entity this, entity to, int sendflags) SendEntity3; -void Net_LinkEntity(entity e, bool docull, float dt, bool(entity to, int sendflags) sendfunc) +bool SendEntity_self(entity to, int sendflags) { return self.SendEntity3(self, to, sendflags); } + +void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc) { if (!e.classname) e.classname = "net_linked"; @@ -16,7 +20,8 @@ void Net_LinkEntity(entity e, bool docull, float dt, bool(entity to, int sendfla setsize(e, mi, ma); } - e.SendEntity = sendfunc; + e.SendEntity = SendEntity_self; + e.SendEntity3 = sendfunc; e.SendFlags = 0xFFFFFF; if (!docull) e.effects |= EF_NODEPTHTEST;