From: Mario Date: Fri, 16 Oct 2020 21:45:04 +0000 (+1000) Subject: Resolve a rabbit hole of header dependencies X-Git-Tag: xonotic-v0.8.5~730 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=62308e453f03857e57edc80a8cd57e94992e6ec1;p=xonotic%2Fxonotic-data.pk3dir.git Resolve a rabbit hole of header dependencies --- diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index f87d35d04..3506aa7b7 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 9bcd45dd9..d5868c1f4 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1,5 +1,7 @@ #include "client.qh" +#include +#include #include #include #include @@ -23,14 +25,19 @@ #include #include #include +#include #include +#include #include #include #include #include +#include #include #include #include +#include +#include #include #include #include @@ -56,9 +63,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include diff --git a/qcsrc/server/clientkill.qc b/qcsrc/server/clientkill.qc index d972d6b08..ee01f7ff1 100644 --- a/qcsrc/server/clientkill.qc +++ b/qcsrc/server/clientkill.qc @@ -1,5 +1,7 @@ #include "clientkill.qh" +#include +#include #include #include #include diff --git a/qcsrc/server/command/common.qc b/qcsrc/server/command/common.qc index 4e001af73..2d12f986b 100644 --- a/qcsrc/server/command/common.qc +++ b/qcsrc/server/command/common.qc @@ -1,9 +1,11 @@ #include "common.qh" #include +#include #include #include #include +#include #include #include #include diff --git a/qcsrc/server/command/getreplies.qc b/qcsrc/server/command/getreplies.qc index 8f572a8ec..81121cfe8 100644 --- a/qcsrc/server/command/getreplies.qc +++ b/qcsrc/server/command/getreplies.qc @@ -5,6 +5,8 @@ #include #include #include +#include +#include #include #include #include @@ -14,6 +16,7 @@ #include #include #include +#include #include // ========================================================= diff --git a/qcsrc/server/damage.qh b/qcsrc/server/damage.qh index 60e4f0a65..68ea7a873 100644 --- a/qcsrc/server/damage.qh +++ b/qcsrc/server/damage.qh @@ -1,31 +1,6 @@ #pragma once -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) - #include - #include - #include - #include - #include - #include - #include - #include - #include "weapons/accuracy.qh" - #include "weapons/csqcprojectile.qh" - #include "weapons/selection.qh" - #include "autocvars.qh" - #include - #include - #include - #include - #include - #include - #include - #include "hook.qh" - #include "scores.qh" - #include "spawnpoints.qh" -#endif +#include .void(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force) event_damage; diff --git a/qcsrc/server/hook.qh b/qcsrc/server/hook.qh index 3be5d6716..23ec8cf7f 100644 --- a/qcsrc/server/hook.qh +++ b/qcsrc/server/hook.qh @@ -1,7 +1,7 @@ #pragma once // Wazat's grappling hook -.entity hook; +.entity hook; void GrapplingHookThink(entity this); void RemoveGrapplingHooks(entity pl); void RemoveHook(entity this); diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index e41b689a7..22cb54abc 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index 28d1ecb20..b5fee52d5 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -27,10 +27,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include diff --git a/qcsrc/server/weapons/common.qc b/qcsrc/server/weapons/common.qc index 130609af3..3f8d2c285 100644 --- a/qcsrc/server/weapons/common.qc +++ b/qcsrc/server/weapons/common.qc @@ -9,12 +9,13 @@ #include #include #include -#include #include #include #include +#include #include #include +#include bool W_DualWielding(entity player) { diff --git a/qcsrc/server/weapons/throwing.qc b/qcsrc/server/weapons/throwing.qc index 41176d753..db89ffc44 100644 --- a/qcsrc/server/weapons/throwing.qc +++ b/qcsrc/server/weapons/throwing.qc @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 223dd071a..a36833a6d 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -1,6 +1,7 @@ #include "tracing.qh" #include +#include #include #include #include diff --git a/qcsrc/server/weapons/weaponsystem.qc b/qcsrc/server/weapons/weaponsystem.qc index 5ec837004..79f692590 100644 --- a/qcsrc/server/weapons/weaponsystem.qc +++ b/qcsrc/server/weapons/weaponsystem.qc @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -17,6 +18,7 @@ #include #include #include +#include #include #include #include