From: terencehill Date: Tue, 16 Aug 2016 14:04:39 +0000 (+0200) Subject: Make it pass compilation unit tests X-Git-Tag: xonotic-v0.8.2~674^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1179864ddf7821d800884ce58b57d206f68f761;p=xonotic%2Fxonotic-data.pk3dir.git Make it pass compilation unit tests --- diff --git a/qcsrc/client/hud/panel/ammo.qc b/qcsrc/client/hud/panel/ammo.qc index 27ba900f0..5561c022c 100644 --- a/qcsrc/client/hud/panel/ammo.qc +++ b/qcsrc/client/hud/panel/ammo.qc @@ -1,5 +1,6 @@ #include "ammo.qh" +#include "scoreboard.qh" #include // Ammo (#1) diff --git a/qcsrc/client/hud/panel/chat.qc b/qcsrc/client/hud/panel/chat.qc index 270eeb87f..f27e9625b 100644 --- a/qcsrc/client/hud/panel/chat.qc +++ b/qcsrc/client/hud/panel/chat.qc @@ -1,5 +1,7 @@ #include "chat.qh" -/** Handle chat as a panel (#12) */ + +// Chat (#12) + void HUD_Chat() { if(!autocvar__hud_configure) diff --git a/qcsrc/client/hud/panel/engineinfo.qc b/qcsrc/client/hud/panel/engineinfo.qc index be5863a4c..b0cc37419 100644 --- a/qcsrc/client/hud/panel/engineinfo.qc +++ b/qcsrc/client/hud/panel/engineinfo.qc @@ -1,5 +1,6 @@ #include "engineinfo.qh" -// Engine info panel (#13) + +// Engine info (#13) float prevfps; float prevfps_time; diff --git a/qcsrc/client/hud/panel/healtharmor.qc b/qcsrc/client/hud/panel/healtharmor.qc index 54685aa14..6407628e8 100644 --- a/qcsrc/client/hud/panel/healtharmor.qc +++ b/qcsrc/client/hud/panel/healtharmor.qc @@ -1,8 +1,10 @@ #include "healtharmor.qh" +#include "scoreboard.qh" #include -/** Health/armor (#3) */ +// Health/armor (#3) + void HUD_HealthArmor() { int armor, health, fuel; diff --git a/qcsrc/client/hud/panel/infomessages.qc b/qcsrc/client/hud/panel/infomessages.qc index ebca95d17..4037d5bef 100644 --- a/qcsrc/client/hud/panel/infomessages.qc +++ b/qcsrc/client/hud/panel/infomessages.qc @@ -1,9 +1,10 @@ #include "infomessages.qh" +#include "scoreboard.qh" #include #include -// Info messages panel (#14) +// Info messages (#14) float autocvar_hud_panel_infomessages_group0 = 1; float autocvar_hud_panel_infomessages_group_fadetime = 0.4; diff --git a/qcsrc/client/hud/panel/minigame.qc b/qcsrc/client/hud/panel/minigame.qc index 933528a49..618f30b10 100644 --- a/qcsrc/client/hud/panel/minigame.qc +++ b/qcsrc/client/hud/panel/minigame.qc @@ -1,4 +1,5 @@ #include "minigame.qh" -// Minigame + +// Minigame (#17, #18, #19, #20) #include diff --git a/qcsrc/client/hud/panel/modicons.qc b/qcsrc/client/hud/panel/modicons.qc index 95009d2ed..fe0bd497b 100644 --- a/qcsrc/client/hud/panel/modicons.qc +++ b/qcsrc/client/hud/panel/modicons.qc @@ -4,7 +4,7 @@ #include #include // TODO: remove -// Mod icons panel (#10) +// Mod icons (#10) bool mod_active; // is there any active mod icon? diff --git a/qcsrc/client/hud/panel/notify.qc b/qcsrc/client/hud/panel/notify.qc index 479800f90..d132ed44b 100644 --- a/qcsrc/client/hud/panel/notify.qc +++ b/qcsrc/client/hud/panel/notify.qc @@ -1,5 +1,8 @@ #include "notify.qh" -// Notification area (#4) + +#include "scoreboard.qh" + +// Notifications (#4) void HUD_Notify_Push(string icon, string attacker, string victim) { diff --git a/qcsrc/client/hud/panel/physics.qc b/qcsrc/client/hud/panel/physics.qc index c28fd78a4..6176cdf46 100644 --- a/qcsrc/client/hud/panel/physics.qc +++ b/qcsrc/client/hud/panel/physics.qc @@ -1,10 +1,11 @@ #include "physics.qh" +#include "scoreboard.qh" #include #include #include -// Physics panel (#15) +// Physics (#15) vector acc_prevspeed; float acc_prevtime, acc_avg, top_speed, top_speed_time; diff --git a/qcsrc/client/hud/panel/powerups.qc b/qcsrc/client/hud/panel/powerups.qc index dd4c0597e..e2b47e216 100644 --- a/qcsrc/client/hud/panel/powerups.qc +++ b/qcsrc/client/hud/panel/powerups.qc @@ -1,5 +1,6 @@ #include "powerups.qh" +#include "scoreboard.qh" #include // Powerups (#2) diff --git a/qcsrc/client/hud/panel/pressedkeys.qc b/qcsrc/client/hud/panel/pressedkeys.qc index e1fb8b474..e44eca5f7 100644 --- a/qcsrc/client/hud/panel/pressedkeys.qc +++ b/qcsrc/client/hud/panel/pressedkeys.qc @@ -1,5 +1,9 @@ #include "pressedkeys.qh" -/** Draw pressed keys (#11) */ + +#include "scoreboard.qh" + +// Pressed keys (#11) + void HUD_PressedKeys() { if(!autocvar__hud_configure) diff --git a/qcsrc/client/hud/panel/quickmenu.qc b/qcsrc/client/hud/panel/quickmenu.qc index ef08fdc60..67fc9e6c8 100644 --- a/qcsrc/client/hud/panel/quickmenu.qc +++ b/qcsrc/client/hud/panel/quickmenu.qc @@ -1,10 +1,12 @@ #include "quickmenu.qh" -// QuickMenu (#23) +#include "scoreboard.qh" #include #include #include +// QuickMenu (#23) + // QUICKMENU_MAXLINES must be <= 10 const int QUICKMENU_MAXLINES = 10; // visible entries are loaded from QuickMenu_Buffer into QuickMenu_Page_* arrays diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index f22f19846..deec4a80f 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -1,8 +1,9 @@ #include "racetimer.qh" +#include "scoreboard.qh" #include -/** Race timer (#8) */ +// Race timer (#6) // return the string of the onscreen race timer string MakeRaceString(int cp, float mytime, float theirtime, float lapdelta, string theirname) diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 9704f81c6..c357c6b99 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -1,5 +1,6 @@ #include "radar.qh" +#include "scoreboard.qh" #include #include #include diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 4e4897f24..34b4f57d2 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -8,6 +8,8 @@ #include #include +// Scoreboard (#24) + float sbt_bg_alpha; float sbt_fg_alpha; float sbt_fg_alpha_self; diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index a87ca93a2..85341b431 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -1,4 +1,7 @@ #include "timer.qh" + +// Timer (#5) + void HUD_Timer() { if(!autocvar__hud_configure) diff --git a/qcsrc/client/hud/panel/vote.qc b/qcsrc/client/hud/panel/vote.qc index 6017e8efa..b6622f8aa 100644 --- a/qcsrc/client/hud/panel/vote.qc +++ b/qcsrc/client/hud/panel/vote.qc @@ -2,7 +2,8 @@ #include -/** Vote window (#9) */ +// Vote (#9) + void HUD_Vote() { if(autocvar_cl_allow_uid2name == -1 && (gametype == MAPINFO_TYPE_CTS || gametype == MAPINFO_TYPE_RACE || (serverflags & SERVERFLAG_PLAYERSTATS))) diff --git a/qcsrc/client/hud/panel/weapons.qc b/qcsrc/client/hud/panel/weapons.qc index c4481ad0c..1006e7a90 100644 --- a/qcsrc/client/hud/panel/weapons.qc +++ b/qcsrc/client/hud/panel/weapons.qc @@ -1,5 +1,8 @@ #include "weapons.qh" -// Weapon icons (#0) + +#include "scoreboard.qh" + +// Weapons (#0) entity weaponorder[Weapons_MAX]; void weaponorder_swap(int i, int j, entity pass)