From: TimePath Date: Sun, 13 Aug 2017 09:45:41 +0000 (+1000) Subject: effects: remove IMPLEMENTATION X-Git-Tag: xonotic-v0.8.5~2529 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=768c6757ba5495053ebc2dd75f6c728e07a4af70;p=xonotic%2Fxonotic-data.pk3dir.git effects: remove IMPLEMENTATION --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 479dd7e8e..64b340622 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -1,8 +1,10 @@ #include "main.qh" +#include "defs.qh" +#include #include "miscfunctions.qh" #include -#include +#include #include #include #include "hud/_mod.qh" diff --git a/qcsrc/client/progs.inc b/qcsrc/client/progs.inc index f6a7999d4..3b607a7e1 100644 --- a/qcsrc/client/progs.inc +++ b/qcsrc/client/progs.inc @@ -5,7 +5,7 @@ #include #include -#include +#include #include #include diff --git a/qcsrc/common/effects/qc/_mod.inc b/qcsrc/common/effects/qc/_mod.inc index befcce83d..8df95b821 100644 --- a/qcsrc/common/effects/qc/_mod.inc +++ b/qcsrc/common/effects/qc/_mod.inc @@ -1,5 +1,4 @@ // generated file; do not modify -#include #include #include #include diff --git a/qcsrc/common/effects/qc/_mod.qh b/qcsrc/common/effects/qc/_mod.qh index 91298f312..3f6387f0e 100644 --- a/qcsrc/common/effects/qc/_mod.qh +++ b/qcsrc/common/effects/qc/_mod.qh @@ -1,5 +1,4 @@ // generated file; do not modify -#include #include #include #include diff --git a/qcsrc/common/effects/qc/all.inc b/qcsrc/common/effects/qc/all.inc deleted file mode 100644 index 6b5c2fffe..000000000 --- a/qcsrc/common/effects/qc/all.inc +++ /dev/null @@ -1,6 +0,0 @@ -#include "casings.qc" -#include "damageeffects.qc" -#include "gibs.qc" -#include "globalsound.qc" -#include "lightningarc.qc" -#include "modeleffects.qc" diff --git a/qcsrc/common/effects/qc/all.qc b/qcsrc/common/effects/qc/all.qc deleted file mode 100644 index f0fc7195a..000000000 --- a/qcsrc/common/effects/qc/all.qc +++ /dev/null @@ -1,5 +0,0 @@ -#include "all.qh" - -#define IMPLEMENTATION -#include "all.inc" -#undef IMPLEMENTATION diff --git a/qcsrc/common/effects/qc/all.qh b/qcsrc/common/effects/qc/all.qh deleted file mode 100644 index 54cf6b6ff..000000000 --- a/qcsrc/common/effects/qc/all.qh +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#include "all.inc" diff --git a/qcsrc/common/effects/qc/casings.qc b/qcsrc/common/effects/qc/casings.qc index d0befbb7e..60f963302 100644 --- a/qcsrc/common/effects/qc/casings.qc +++ b/qcsrc/common/effects/qc/casings.qc @@ -1,9 +1,4 @@ #include "casings.qh" -#ifdef SVQC -void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float randomavel, int casingtype, entity casingowner, .entity weaponentity); -#endif - -#ifdef IMPLEMENTATION #include @@ -178,4 +173,3 @@ NET_HANDLE(casings, bool isNew) } #endif -#endif diff --git a/qcsrc/common/effects/qc/casings.qh b/qcsrc/common/effects/qc/casings.qh index 6f70f09be..137aa365c 100644 --- a/qcsrc/common/effects/qc/casings.qh +++ b/qcsrc/common/effects/qc/casings.qh @@ -1 +1,5 @@ #pragma once + +#ifdef SVQC +void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float randomavel, int casingtype, entity casingowner, .entity weaponentity); +#endif diff --git a/qcsrc/common/effects/qc/damageeffects.qc b/qcsrc/common/effects/qc/damageeffects.qc index 38241c2cc..c85d66eeb 100644 --- a/qcsrc/common/effects/qc/damageeffects.qc +++ b/qcsrc/common/effects/qc/damageeffects.qc @@ -1,7 +1,5 @@ #include "damageeffects.qh" -#ifdef IMPLEMENTATION - REGISTER_NET_LINKED(ENT_CLIENT_DAMAGEINFO) #ifdef SVQC @@ -415,5 +413,3 @@ NET_HANDLE(ENT_CLIENT_DAMAGEINFO, bool isNew) } #endif - -#endif diff --git a/qcsrc/common/effects/qc/gibs.qc b/qcsrc/common/effects/qc/gibs.qc index d1e3d9880..7be63e2e5 100644 --- a/qcsrc/common/effects/qc/gibs.qc +++ b/qcsrc/common/effects/qc/gibs.qc @@ -1,6 +1,5 @@ #include "gibs.qh" -#ifdef IMPLEMENTATION REGISTER_NET_TEMP(net_gibsplash) #ifdef SVQC @@ -314,5 +313,3 @@ NET_HANDLE(net_gibsplash, bool isNew) delete(this); } #endif - -#endif diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index c3aaf62d4..edf995a0f 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -2,7 +2,6 @@ #include -#ifdef IMPLEMENTATION #include #ifdef SVQC @@ -436,4 +435,3 @@ } #endif -#endif diff --git a/qcsrc/common/effects/qc/lightningarc.qc b/qcsrc/common/effects/qc/lightningarc.qc index c1c3bb887..6388575b7 100644 --- a/qcsrc/common/effects/qc/lightningarc.qc +++ b/qcsrc/common/effects/qc/lightningarc.qc @@ -1,6 +1,5 @@ #include "lightningarc.qh" -#ifdef IMPLEMENTATION REGISTER_NET_TEMP(TE_CSQC_ARC) #if defined(SVQC) @@ -117,5 +116,3 @@ void b_make(vector s,vector e, string t,float l,float z) } #endif - -#endif diff --git a/qcsrc/common/effects/qc/modeleffects.qc b/qcsrc/common/effects/qc/modeleffects.qc index 8fbef5b58..1b70daee2 100644 --- a/qcsrc/common/effects/qc/modeleffects.qc +++ b/qcsrc/common/effects/qc/modeleffects.qc @@ -1,7 +1,5 @@ #include "modeleffects.qh" -#ifdef IMPLEMENTATION - REGISTER_NET_LINKED(ENT_CLIENT_MODELEFFECT) #ifdef SVQC @@ -162,5 +160,3 @@ NET_HANDLE(ENT_CLIENT_MODELEFFECT, bool isnew) return true; } #endif - -#endif diff --git a/qcsrc/common/monsters/monster/shambler.qc b/qcsrc/common/monsters/monster/shambler.qc index b03766bcf..338acacd6 100644 --- a/qcsrc/common/monsters/monster/shambler.qc +++ b/qcsrc/common/monsters/monster/shambler.qc @@ -50,7 +50,7 @@ void M_Shambler_Attack_Swing(entity this) Monster_Attack_Melee(this, this.enemy, (autocvar_g_monster_shambler_attack_claw_damage), ((random() >= 0.5) ? this.anim_melee2 : this.anim_melee3), this.attack_range, 0.8, DEATH_MONSTER_SHAMBLER_CLAW.m_id, true); } -#include +#include void M_Shambler_Attack_Lightning_Explode(entity this, entity directhitentity) { diff --git a/qcsrc/common/weapons/weapon.qh b/qcsrc/common/weapons/weapon.qh index ab24ec4a8..ea2e2e173 100644 --- a/qcsrc/common/weapons/weapon.qh +++ b/qcsrc/common/weapons/weapon.qh @@ -4,7 +4,7 @@ #include #ifdef SVQC -#include +#include #endif USING(WepSet, vector); diff --git a/qcsrc/server/mutators/gamemode.qh b/qcsrc/server/mutators/gamemode.qh index ac8746516..c6fdeb244 100644 --- a/qcsrc/server/mutators/gamemode.qh +++ b/qcsrc/server/mutators/gamemode.qh @@ -91,7 +91,7 @@ #include #include -#include +#include #include #include #include diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index 9ac2249a2..931ef826d 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -22,7 +22,7 @@ #include "../common/minigames/sv_minigames.qh" #include "../common/physics/player.qh" -#include "../common/effects/qc/all.qh" +#include "../common/effects/qc/_mod.qh" #include "../common/mutators/mutator/waypoints/waypointsprites.qh" #include "../common/triggers/include.qh" #include "../common/wepent.qh" diff --git a/qcsrc/server/progs.inc b/qcsrc/server/progs.inc index f72ff8533..fd0b0c99e 100644 --- a/qcsrc/server/progs.inc +++ b/qcsrc/server/progs.inc @@ -5,7 +5,7 @@ #include #include -#include +#include #include