]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Work around the need to include net_linked.qh from sv_model.qc (temporary hack for...
authorMario <mario@smbclan.net>
Wed, 28 Jun 2017 09:16:26 +0000 (19:16 +1000)
committerMario <mario@smbclan.net>
Wed, 28 Jun 2017 09:16:26 +0000 (19:16 +1000)
qcsrc/common/net_linked.qh
qcsrc/lib/csqcmodel/net.qh [new file with mode: 0644]
qcsrc/lib/csqcmodel/sv_model.qc

index 9cd2094a68852b59b4775090bdf40ea124701543..de8cf8f92d9bb9095fe82f9e68147fe0631ca13e 100644 (file)
@@ -40,8 +40,6 @@ REGISTER_NET_LINKED(ENT_CLIENT_RANDOMSEED)
 REGISTER_NET_LINKED(ENT_CLIENT_ACCURACY)
 REGISTER_NET_LINKED(ENT_CLIENT_ELIMINATEDPLAYERS)
 
-REGISTER_NET_LINKED(ENT_CLIENT_MODEL)
-
 REGISTER_NET_LINKED(ENT_CLIENT_WARPZONE)
 REGISTER_NET_LINKED(ENT_CLIENT_WARPZONE_CAMERA)
 REGISTER_NET_LINKED(ENT_CLIENT_WARPZONE_TELEPORTED)
@@ -53,3 +51,5 @@ REGISTER_NET_LINKED(ENT_CLIENT_TUBANOTE)
 REGISTER_NET_LINKED(ENT_CLIENT_SPAWNPOINT)
 REGISTER_NET_LINKED(ENT_CLIENT_SPAWNEVENT)
 REGISTER_NET_LINKED(ENT_CLIENT_WALL)
+
+#include <lib/csqcmodel/net.qh>
diff --git a/qcsrc/lib/csqcmodel/net.qh b/qcsrc/lib/csqcmodel/net.qh
new file mode 100644 (file)
index 0000000..43ad1b9
--- /dev/null
@@ -0,0 +1,3 @@
+#pragma once
+
+REGISTER_NET_LINKED(ENT_CLIENT_MODEL)
index ad391d5fec6bc404b7eb7c3f2367e97d7a450327..0ff4389944c03dcda8f0756cb0dba5d21d43fef5 100644 (file)
@@ -22,7 +22,6 @@
 #include "sv_model.qh"
 
 #include "common.qh"
-#include <common/net_linked.qh>
 
 // generic CSQC model code