From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Fri, 16 Oct 2020 06:53:54 +0000 (+0200) Subject: remove unnecessary main.qh includes (also one server/player.qh include) X-Git-Tag: xonotic-v0.8.5~734^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=db280a66b7b7ac88eaf779e80d71373c8d09cc98;p=xonotic%2Fxonotic-data.pk3dir.git remove unnecessary main.qh includes (also one server/player.qh include) --- diff --git a/qcsrc/client/command/cl_cmd.qc b/qcsrc/client/command/cl_cmd.qc index 9f3f232cc..f65b0429d 100644 --- a/qcsrc/client/command/cl_cmd.qc +++ b/qcsrc/client/command/cl_cmd.qc @@ -14,7 +14,6 @@ #include #include #include -#include "../main.qh" #include "../mapvoting.qh" #include diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index f0ff55e8a..73452dc71 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -1,8 +1,6 @@ #include "csqcmodel_hooks.qh" #include "autocvars.qh" -#include "main.qh" #include -#include #include "player_skeleton.qh" #include "weapons/projectile.qh" #include diff --git a/qcsrc/client/hud/crosshair.qc b/qcsrc/client/hud/crosshair.qc index 1c0f06c6a..f77ef6722 100644 --- a/qcsrc/client/hud/crosshair.qc +++ b/qcsrc/client/hud/crosshair.qc @@ -2,7 +2,6 @@ #include #include -#include #include #include diff --git a/qcsrc/client/hud/panel/ammo.qc b/qcsrc/client/hud/panel/ammo.qc index cab9d197d..dd4c59f04 100644 --- a/qcsrc/client/hud/panel/ammo.qc +++ b/qcsrc/client/hud/panel/ammo.qc @@ -3,7 +3,6 @@ #include #include #include -#include #include #include #include diff --git a/qcsrc/client/hud/panel/healtharmor.qc b/qcsrc/client/hud/panel/healtharmor.qc index 495aa63fc..5a3214ad9 100644 --- a/qcsrc/client/hud/panel/healtharmor.qc +++ b/qcsrc/client/hud/panel/healtharmor.qc @@ -1,7 +1,6 @@ #include "healtharmor.qh" #include -#include #include diff --git a/qcsrc/client/hud/panel/infomessages.qc b/qcsrc/client/hud/panel/infomessages.qc index 632f3fad5..d5c7cb8c4 100644 --- a/qcsrc/client/hud/panel/infomessages.qc +++ b/qcsrc/client/hud/panel/infomessages.qc @@ -2,7 +2,6 @@ #include #include -#include #include diff --git a/qcsrc/client/hud/panel/physics.qc b/qcsrc/client/hud/panel/physics.qc index 11ed12e82..da2052622 100644 --- a/qcsrc/client/hud/panel/physics.qc +++ b/qcsrc/client/hud/panel/physics.qc @@ -2,7 +2,6 @@ #include #include -#include #include // Physics (#15) diff --git a/qcsrc/client/hud/panel/powerups.qc b/qcsrc/client/hud/panel/powerups.qc index 587d20071..b97c80f0b 100644 --- a/qcsrc/client/hud/panel/powerups.qc +++ b/qcsrc/client/hud/panel/powerups.qc @@ -2,7 +2,6 @@ #include #include -#include #include #include diff --git a/qcsrc/client/hud/panel/pressedkeys.qc b/qcsrc/client/hud/panel/pressedkeys.qc index 021b66856..c26e42094 100644 --- a/qcsrc/client/hud/panel/pressedkeys.qc +++ b/qcsrc/client/hud/panel/pressedkeys.qc @@ -2,7 +2,6 @@ #include #include -#include // Pressed keys (#11) diff --git a/qcsrc/client/hud/panel/quickmenu.qc b/qcsrc/client/hud/panel/quickmenu.qc index deed53da0..29640c219 100644 --- a/qcsrc/client/hud/panel/quickmenu.qc +++ b/qcsrc/client/hud/panel/quickmenu.qc @@ -2,7 +2,6 @@ #include #include -#include #include #include #include diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index 85fdc86c6..b4629bb81 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -2,7 +2,6 @@ #include #include -#include // Race timer (#8) diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 1e688b1fd..0f2131da0 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -2,7 +2,6 @@ #include #include -#include #include #include #include diff --git a/qcsrc/client/hud/panel/score.qc b/qcsrc/client/hud/panel/score.qc index 81f91663c..43125e9b5 100644 --- a/qcsrc/client/hud/panel/score.qc +++ b/qcsrc/client/hud/panel/score.qc @@ -2,7 +2,6 @@ #include #include -#include #include "scoreboard.qh" #include #include diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index c21b99092..c4e87a3cd 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -2,7 +2,6 @@ #include #include -#include #include #include #include "quickmenu.qh" diff --git a/qcsrc/client/hud/panel/vote.qc b/qcsrc/client/hud/panel/vote.qc index 12f691c99..978851e49 100644 --- a/qcsrc/client/hud/panel/vote.qc +++ b/qcsrc/client/hud/panel/vote.qc @@ -2,7 +2,6 @@ #include #include -#include // Vote (#9) diff --git a/qcsrc/client/hud/panel/weapons.qc b/qcsrc/client/hud/panel/weapons.qc index b252df19e..003d88391 100644 --- a/qcsrc/client/hud/panel/weapons.qc +++ b/qcsrc/client/hud/panel/weapons.qc @@ -2,7 +2,6 @@ #include #include -#include #include #include diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 06a33f665..7a1726c84 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -2,7 +2,6 @@ #include "autocvars.qh" #include -#include "main.qh" #include "hud/_mod.qh" #include "hud/panel/scoreboard.qh" diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 05491cc8a..fcca84189 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -2,7 +2,6 @@ #include "autocvars.qh" #include -#include "main.qh" #include "resources.qh" #include #include "hud/_mod.qh" diff --git a/qcsrc/client/teamradar.qc b/qcsrc/client/teamradar.qc index e67213e3b..130d1e74b 100644 --- a/qcsrc/client/teamradar.qc +++ b/qcsrc/client/teamradar.qc @@ -2,7 +2,6 @@ #include "autocvars.qh" #include "hud/_mod.qh" -#include #include diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 2b4081aba..ca1d5324c 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -4,7 +4,6 @@ #include #include "announcer.qh" #include "hud/_mod.qh" -#include "main.qh" #include "mapvoting.qh" #include "shownames.qh" #include "hud/panel/scoreboard.qh" diff --git a/qcsrc/client/weapons/projectile.qc b/qcsrc/client/weapons/projectile.qc index cb5b4240c..3e1f5cade 100644 --- a/qcsrc/client/weapons/projectile.qc +++ b/qcsrc/client/weapons/projectile.qc @@ -1,7 +1,6 @@ #include "projectile.qh" #include "../autocvars.qh" -#include "../main.qh" #include #include diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index 8e671b17d..3e855c69b 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -4,13 +4,6 @@ #include - #ifdef SVQC - #include - #endif - #ifdef CSQC - #include - #endif - REGISTER_NET_TEMP(globalsound) REGISTER_NET_TEMP(playersound) diff --git a/qcsrc/common/mapobjects/misc/laser.qc b/qcsrc/common/mapobjects/misc/laser.qc index 77435e938..76ebc0c40 100644 --- a/qcsrc/common/mapobjects/misc/laser.qc +++ b/qcsrc/common/mapobjects/misc/laser.qc @@ -1,7 +1,6 @@ #include "laser.qh" #if defined(CSQC) #include - #include #include #elif defined(MENUQC) #elif defined(SVQC) diff --git a/qcsrc/common/mapobjects/teleporters.qc b/qcsrc/common/mapobjects/teleporters.qc index 1fbe04b76..1b0c9a3da 100644 --- a/qcsrc/common/mapobjects/teleporters.qc +++ b/qcsrc/common/mapobjects/teleporters.qc @@ -14,7 +14,6 @@ #include #include #include "../deathtypes/all.qh" - #include #include "../turrets/sv_turrets.qh" #include "../vehicles/all.qh" #include diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qc b/qcsrc/common/mapobjects/trigger/jumppads.qc index 5273179ad..b016dde9a 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qc +++ b/qcsrc/common/mapobjects/trigger/jumppads.qc @@ -2,7 +2,6 @@ // TODO: split target_push and put it in the target folder #ifdef SVQC #include -#include void trigger_push_use(entity this, entity actor, entity trigger) { diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index d5bff8f02..2e109e906 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -15,7 +15,6 @@ #include #include #include -#include #include "../turrets/sv_turrets.qh" #include "../turrets/util.qh" #include "../vehicles/all.qh" diff --git a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc index 3b272e69c..07d6292bd 100644 --- a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc @@ -3,7 +3,6 @@ #include #include #include -#include void buffs_DelayedInit(entity this); diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 319a6bf64..7afc039e1 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -7,7 +7,6 @@ #include #include #include "../mapobjects/trigger/viewloc.qh" -#include // client side physics bool Physics_Valid(string thecvar) diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index beff57489..dbfeb1240 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -8,7 +8,6 @@ #include #include #include -#include #include bool SendAuxiliaryXhair(entity this, entity to, int sf) diff --git a/qcsrc/common/viewloc.qc b/qcsrc/common/viewloc.qc index b2d518bcc..58cf42161 100644 --- a/qcsrc/common/viewloc.qc +++ b/qcsrc/common/viewloc.qc @@ -2,7 +2,6 @@ #include "util.qh" #if defined(CSQC) - #include #include "constants.qh" #elif defined(MENUQC) #elif defined(SVQC)