Fix compilation unit test
authorMario <mario@smbclan.net>
Wed, 5 Oct 2016 13:36:15 +0000 (23:36 +1000)
committerMario <mario@smbclan.net>
Wed, 5 Oct 2016 13:36:15 +0000 (23:36 +1000)
qcsrc/client/_all.qh
qcsrc/client/view.qc
qcsrc/client/view.qh
qcsrc/server/bot/default/havocbot/havocbot.qc
qcsrc/server/bot/default/scripting.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/player.qc
qcsrc/server/weapons/hitplot.qc
qcsrc/server/weapons/selection.qc
qcsrc/server/weapons/throwing.qc
qcsrc/server/weapons/weaponsystem.qc

index 5593af1..5935342 100644 (file)
@@ -11,6 +11,7 @@
 #include "defs.qh"
 #include "main.qh"
 #include "miscfunctions.qh"
+#include "view.qh"
 
 #include <common/ent_cs.qh>
 #include <common/wepent.qh>
index 2dcd241..a485240 100644 (file)
@@ -354,7 +354,6 @@ void viewmodel_draw(entity this)
        setorigin(this, this.origin);
 }
 
-entity viewmodels[MAX_WEAPONSLOTS];
 STATIC_INIT(viewmodel) {
     for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
        viewmodels[slot] = new(viewmodel);
index f8c8bd2..01d4546 100644 (file)
@@ -1,3 +1,5 @@
 #pragma once
 
 vector crosshair_getcolor(entity this, float health_stat);
+
+entity viewmodels[MAX_WEAPONSLOTS];
index db395b9..806ffc9 100644 (file)
@@ -12,6 +12,7 @@
 #include <common/physics/player.qh>
 #include <common/state.qh>
 #include <common/items/_mod.qh>
+#include <common/wepent.qh>
 
 #include <common/triggers/teleporters.qh>
 #include <common/triggers/trigger/jumppads.qh>
index 66dc91b..4b3fc62 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <common/state.qh>
 #include <common/physics/player.qh>
+#include <common/wepent.qh>
 
 #include "bot.qh"
 
index 0237a75..35f0f22 100644 (file)
@@ -25,6 +25,7 @@
 #include "../common/items/_mod.qh"
 #include "../common/state.qh"
 #include "../common/effects/qc/globalsound.qh"
+#include "../common/wepent.qh"
 #include "../lib/csqcmodel/sv_model.qh"
 #include "../lib/warpzone/anglestransform.qh"
 #include "../lib/warpzone/server.qh"
index 25ad246..8aa67fc 100644 (file)
@@ -24,6 +24,7 @@
 #include "../common/effects/qc/all.qh"
 #include "../common/mutators/mutator/waypoints/waypointsprites.qh"
 #include "../common/triggers/include.qh"
+#include "../common/wepent.qh"
 
 #include "weapons/weaponstats.qh"
 
index 0173c6d..d148ab5 100644 (file)
@@ -4,6 +4,7 @@
 #include "../g_subs.qh"
 #include <common/weapons/_all.qh>
 #include <common/state.qh>
+#include <common/wepent.qh>
 
 vector W_HitPlotUnnormalizedUntransform(vector screenforward, vector screenright, vector screenup, vector v)
 {
index bd05832..b307592 100644 (file)
@@ -8,6 +8,7 @@
 #include <common/weapons/_all.qh>
 #include <common/state.qh>
 #include <common/mutators/mutator/waypoints/waypointsprites.qh>
+#include <common/wepent.qh>
 
 // switch between weapons
 void Send_WeaponComplain(entity e, float wpn, float type)
index a9fabf5..4114c3c 100644 (file)
@@ -11,6 +11,7 @@
 #include <common/util.qh>
 #include <common/weapons/_all.qh>
 #include <common/state.qh>
+#include <common/wepent.qh>
 
 void thrown_wep_think(entity this)
 {
index 1a223ce..3b51adb 100644 (file)
@@ -14,6 +14,7 @@
 #include <common/weapons/_all.qh>
 #include <common/state.qh>
 #include <lib/csqcmodel/sv_model.qh>
+#include <common/wepent.qh>
 
 .int state;