From: Mario Date: Mon, 11 Jun 2018 04:45:51 +0000 (+1000) Subject: Purge direct includes of mutators/events.qh in favour of the _mod files X-Git-Tag: xonotic-v0.8.5~2075 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4181392df811a93dee6b97c303c3f7655f2f0a23;p=xonotic%2Fxonotic-data.pk3dir.git Purge direct includes of mutators/events.qh in favour of the _mod files --- diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 62b732bec..bcbe72446 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -1,6 +1,6 @@ #include "announcer.qh" -#include "mutators/events.qh" +#include #include #include diff --git a/qcsrc/client/commands/cl_cmd.qc b/qcsrc/client/commands/cl_cmd.qc index 8eea240d4..5a53be8e7 100644 --- a/qcsrc/client/commands/cl_cmd.qc +++ b/qcsrc/client/commands/cl_cmd.qc @@ -14,7 +14,7 @@ #include "../mapvoting.qh" #include "../miscfunctions.qh" -#include "../mutators/events.qh" +#include #include diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 6499a683e..37e18bd8e 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -2,7 +2,7 @@ #include "autocvars.qh" #include "csqcmodel_hooks.qh" #include "miscfunctions.qh" -#include "mutators/events.qh" +#include #include "player_skeleton.qh" #include "weapons/projectile.qh" #include diff --git a/qcsrc/client/hud/panel.qh b/qcsrc/client/hud/panel.qh index 66ca0772b..1ea23ae2e 100644 --- a/qcsrc/client/hud/panel.qh +++ b/qcsrc/client/hud/panel.qh @@ -2,4 +2,4 @@ #include "hud.qh" #include "hud_config.qh" -#include +#include diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 22556e2ae..efb1fa204 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -9,7 +9,7 @@ #include #include "hud/_mod.qh" #include "mapvoting.qh" -#include "mutators/events.qh" +#include #include "hud/panel/scoreboard.qh" #include "hud/panel/quickmenu.qh" #include "shownames.qh" diff --git a/qcsrc/client/player_skeleton.qc b/qcsrc/client/player_skeleton.qc index 220b9c612..bb1b6f919 100644 --- a/qcsrc/client/player_skeleton.qc +++ b/qcsrc/client/player_skeleton.qc @@ -2,7 +2,7 @@ #include #include -#include "mutators/events.qh" +#include #include "../lib/csqcmodel/cl_player.qh" #include "../lib/warpzone/anglestransform.qh" diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index fa5a79207..a1b53fb82 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -9,7 +9,7 @@ #include "hud/panel/scoreboard.qh" #include "hud/panel/quickmenu.qh" -#include "mutators/events.qh" +#include #include #include diff --git a/qcsrc/client/weapons/projectile.qc b/qcsrc/client/weapons/projectile.qc index 089c7df11..444fb2743 100644 --- a/qcsrc/client/weapons/projectile.qc +++ b/qcsrc/client/weapons/projectile.qc @@ -3,7 +3,7 @@ #include "../autocvars.qh" #include "../defs.qh" #include "../main.qh" -#include "../mutators/events.qh" +#include #include #include diff --git a/qcsrc/common/effects/qc/damageeffects.qh b/qcsrc/common/effects/qc/damageeffects.qh index 2a1d587ca..68b43b176 100644 --- a/qcsrc/common/effects/qc/damageeffects.qh +++ b/qcsrc/common/effects/qc/damageeffects.qh @@ -3,7 +3,7 @@ #ifdef CSQC #include #include -#include +#include #include #include #endif diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 53b67c903..183302b3a 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -2,7 +2,7 @@ #if defined(CSQC) #include "constants.qh" - #include "../client/mutators/events.qh" + #include #include "mapinfo.qh" #include "notifications/all.qh" #include "scores.qh" @@ -10,7 +10,7 @@ #elif defined(MENUQC) #elif defined(SVQC) #include "constants.qh" - #include "../server/mutators/events.qh" + #include #include "notifications/all.qh" #include #include "scores.qh" diff --git a/qcsrc/menu/command/menu_cmd.qc b/qcsrc/menu/command/menu_cmd.qc index e727b39e6..bd45230c9 100644 --- a/qcsrc/menu/command/menu_cmd.qc +++ b/qcsrc/menu/command/menu_cmd.qc @@ -3,7 +3,7 @@ #include "../menu.qh" #include "../item.qh" -#include "../mutators/events.qh" +#include #include diff --git a/qcsrc/menu/mutators/_mod.inc b/qcsrc/menu/mutators/_mod.inc index 98fb4815c..269809269 100644 --- a/qcsrc/menu/mutators/_mod.inc +++ b/qcsrc/menu/mutators/_mod.inc @@ -1 +1,2 @@ // generated file; do not modify +#include diff --git a/qcsrc/menu/mutators/_mod.qh b/qcsrc/menu/mutators/_mod.qh index 98fb4815c..93432be42 100644 --- a/qcsrc/menu/mutators/_mod.qh +++ b/qcsrc/menu/mutators/_mod.qh @@ -1 +1,2 @@ // generated file; do not modify +#include diff --git a/qcsrc/menu/mutators/events.qc b/qcsrc/menu/mutators/events.qc new file mode 100644 index 000000000..c2dbb7021 --- /dev/null +++ b/qcsrc/menu/mutators/events.qc @@ -0,0 +1 @@ +#include "events.qh" diff --git a/qcsrc/menu/xonotic/mainwindow.qc b/qcsrc/menu/xonotic/mainwindow.qc index 0afd27c8d..110b796be 100644 --- a/qcsrc/menu/xonotic/mainwindow.qc +++ b/qcsrc/menu/xonotic/mainwindow.qc @@ -1,6 +1,6 @@ #include "mainwindow.qh" -#include "../mutators/events.qh" +#include #include "nexposee.qh" #include "inputbox.qh" diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index 383ead194..3a9befde4 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -11,7 +11,7 @@ #include "../../weapons/weaponsystem.qh" -#include "../../mutators/_mod.qh" +#include // traces multiple trajectories to find one that will impact the target // 'end' vector is the place it aims for, diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index b4272e3e0..976d67ec9 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -21,7 +21,7 @@ #include "../../race.qh" #include -#include "../../mutators/_mod.qh" +#include #include "../../weapons/accuracy.qh" diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 9751c6cf2..f71cb494b 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -9,7 +9,7 @@ #include "race.qh" #include "../common/mapobjects/teleporters.qh" -#include "mutators/_mod.qh" +#include #include "weapons/tracing.qh" diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 2267c144a..8111a64ef 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -16,7 +16,7 @@ #include "../scores.qh" #include "../teamplay.qh" -#include "../mutators/_mod.qh" +#include #include #ifdef SVQC diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 35b172e7f..0471cff07 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -20,7 +20,7 @@ #include "../bot/api.qh" -#include "../mutators/_mod.qh" +#include #include #include diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 48cf949d4..5f034f12f 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -14,7 +14,7 @@ #include "../round_handler.qh" #include "../scores.qh" -#include "../mutators/_mod.qh" +#include #include #include diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 21c00738f..cefeb316a 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -3,7 +3,7 @@ #include #include "bot/api.qh" #include "g_hook.qh" -#include "mutators/_mod.qh" +#include #include "scores.qh" #include "spawnpoints.qh" #include "../common/state.qh" diff --git a/qcsrc/server/g_damage.qh b/qcsrc/server/g_damage.qh index 9c4983fee..9ab817853 100644 --- a/qcsrc/server/g_damage.qh +++ b/qcsrc/server/g_damage.qh @@ -19,7 +19,7 @@ #include "defs.qh" #include #include - #include "mutators/_mod.qh" + #include #include #include #include diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 48bc63bbc..842f5b53c 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -13,7 +13,7 @@ #include "g_hook.qh" #include "ipban.qh" #include "mapvoting.qh" -#include "mutators/_mod.qh" +#include #include "race.qh" #include "scores.qh" #include "teamplay.qh" diff --git a/qcsrc/server/items.qc b/qcsrc/server/items.qc index 8a1768a8c..b21df78e3 100644 --- a/qcsrc/server/items.qc +++ b/qcsrc/server/items.qc @@ -5,7 +5,7 @@ /// game items. /// \copyright GNU GPLv2 or any later version. -#include "mutators/events.qh" +#include #include #include diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 25ba4b9f5..1a885f78f 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -5,7 +5,7 @@ #include "constants.qh" #include "g_hook.qh" #include "ipban.qh" -#include "mutators/_mod.qh" +#include #include "../common/t_items.qh" #include "resources.qh" #include "items.qh" diff --git a/qcsrc/server/miscfunctions.qh b/qcsrc/server/miscfunctions.qh index df69ade28..92707bf39 100644 --- a/qcsrc/server/miscfunctions.qh +++ b/qcsrc/server/miscfunctions.qh @@ -5,7 +5,7 @@ #include -#include "mutators/events.qh" +#include #include #include diff --git a/qcsrc/server/mutators/_mod.inc b/qcsrc/server/mutators/_mod.inc index 582c2852f..7b7cdf33d 100644 --- a/qcsrc/server/mutators/_mod.inc +++ b/qcsrc/server/mutators/_mod.inc @@ -1,2 +1,3 @@ // generated file; do not modify +#include #include diff --git a/qcsrc/server/mutators/_mod.qh b/qcsrc/server/mutators/_mod.qh index 9ba0319fe..6adf8e0db 100644 --- a/qcsrc/server/mutators/_mod.qh +++ b/qcsrc/server/mutators/_mod.qh @@ -1,2 +1,3 @@ // generated file; do not modify +#include #include diff --git a/qcsrc/server/mutators/events.qc b/qcsrc/server/mutators/events.qc new file mode 100644 index 000000000..c2dbb7021 --- /dev/null +++ b/qcsrc/server/mutators/events.qc @@ -0,0 +1 @@ +#include "events.qh" diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 166c64255..2cb40a834 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -4,8 +4,7 @@ #include "defs.qh" #include #include -//#include "mutators/_mod.qh" -#include "mutators/events.qh" +#include #include #include "../common/playerstats.qh" #include "../common/teams.qh" diff --git a/qcsrc/server/spawnpoints.qc b/qcsrc/server/spawnpoints.qc index 6cfd45b10..dcf6016c5 100644 --- a/qcsrc/server/spawnpoints.qc +++ b/qcsrc/server/spawnpoints.qc @@ -1,6 +1,6 @@ #include "spawnpoints.qh" -#include "mutators/events.qh" +#include #include "g_world.qh" #include "race.qh" #include "defs.qh" diff --git a/qcsrc/server/sv_main.qc b/qcsrc/server/sv_main.qc index 6d412bace..326c8d960 100644 --- a/qcsrc/server/sv_main.qc +++ b/qcsrc/server/sv_main.qc @@ -9,7 +9,7 @@ #include "command/common.qh" -#include "mutators/_mod.qh" +#include #include "weapons/csqcprojectile.qh" #include "../common/constants.qh" diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index a30e4696d..d9bab5d7f 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -9,7 +9,7 @@ #include "command/vote.qh" -#include "mutators/_mod.qh" +#include #include "../common/deathtypes/all.qh" #include diff --git a/qcsrc/server/weapons/accuracy.qc b/qcsrc/server/weapons/accuracy.qc index 1eda4e25b..2d553ba16 100644 --- a/qcsrc/server/weapons/accuracy.qc +++ b/qcsrc/server/weapons/accuracy.qc @@ -1,6 +1,6 @@ #include "accuracy.qh" -#include "../mutators/_mod.qh" +#include #include #include #include diff --git a/qcsrc/server/weapons/spawning.qc b/qcsrc/server/weapons/spawning.qc index 17f2ddeee..204b5a763 100644 --- a/qcsrc/server/weapons/spawning.qc +++ b/qcsrc/server/weapons/spawning.qc @@ -2,7 +2,7 @@ #include "weaponsystem.qh" #include "../resources.qh" -#include "../mutators/_mod.qh" +#include #include #include #include diff --git a/qcsrc/server/weapons/throwing.qc b/qcsrc/server/weapons/throwing.qc index dcf9ee41b..462af14d8 100644 --- a/qcsrc/server/weapons/throwing.qc +++ b/qcsrc/server/weapons/throwing.qc @@ -3,7 +3,7 @@ #include "weaponsystem.qh" #include "../resources.qh" #include "../items.qh" -#include "../mutators/_mod.qh" +#include #include #include "../g_damage.qh" #include diff --git a/qcsrc/server/weapons/weaponsystem.qc b/qcsrc/server/weapons/weaponsystem.qc index dd0e35b95..9c62ec22e 100644 --- a/qcsrc/server/weapons/weaponsystem.qc +++ b/qcsrc/server/weapons/weaponsystem.qc @@ -3,7 +3,7 @@ #include "selection.qh" #include "../command/common.qh" -#include "../mutators/_mod.qh" +#include #include "../round_handler.qh" #include #include