From c58f64ef151dab8679008c4afa1737f69b948ba0 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 28 Jun 2017 19:16:26 +1000 Subject: [PATCH] Work around the need to include net_linked.qh from sv_model.qc (temporary hack for self containment) --- qcsrc/common/net_linked.qh | 4 ++-- qcsrc/lib/csqcmodel/net.qh | 3 +++ qcsrc/lib/csqcmodel/sv_model.qc | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 qcsrc/lib/csqcmodel/net.qh diff --git a/qcsrc/common/net_linked.qh b/qcsrc/common/net_linked.qh index 9cd2094a6..de8cf8f92 100644 --- a/qcsrc/common/net_linked.qh +++ b/qcsrc/common/net_linked.qh @@ -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 diff --git a/qcsrc/lib/csqcmodel/net.qh b/qcsrc/lib/csqcmodel/net.qh new file mode 100644 index 000000000..43ad1b99f --- /dev/null +++ b/qcsrc/lib/csqcmodel/net.qh @@ -0,0 +1,3 @@ +#pragma once + +REGISTER_NET_LINKED(ENT_CLIENT_MODEL) diff --git a/qcsrc/lib/csqcmodel/sv_model.qc b/qcsrc/lib/csqcmodel/sv_model.qc index ad391d5fe..0ff438994 100644 --- a/qcsrc/lib/csqcmodel/sv_model.qc +++ b/qcsrc/lib/csqcmodel/sv_model.qc @@ -22,7 +22,6 @@ #include "sv_model.qh" #include "common.qh" -#include // generic CSQC model code -- 2.39.2