]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix the compilation unit, apparently
authorMario <mario@smbclan.net>
Tue, 19 Jun 2018 01:55:27 +0000 (11:55 +1000)
committerMario <mario@smbclan.net>
Tue, 19 Jun 2018 01:55:27 +0000 (11:55 +1000)
qcsrc/client/main.qh
qcsrc/client/resources.qc
qcsrc/client/resources.qh
qcsrc/common/items/item/ammo.qh

index a95acd5739672b5fe096b1e2891220ab92fe3f40..69c3fa3d2b300eb4f54f6fd2a9bf4b8e68db62bf 100644 (file)
@@ -114,7 +114,6 @@ const int MAX_SPECTATORS = 7;
 int spectatorlist[MAX_SPECTATORS];
 
 int framecount;
-.float health;
 
 float GetSpeedUnitFactor(int speed_unit);
 string GetSpeedUnit(int speed_unit);
index 29a9cae1bb2dc9145a5b10148485042de85e0e26..285ebad639c4ea4f66cdfeeb2394280f5e711d32 100644 (file)
@@ -1,4 +1,5 @@
 #include "resources.qh"
+#include <common/items/item/ammo.qh>
 
 /// \file
 /// \brief Source file that contains implementation of the resource system.
index 6d4f46ed2f44143acef17fcf3fc3a4452befe36a..3aaa8aab593786ffd7b15f46909258899f6f7772 100644 (file)
@@ -55,3 +55,7 @@ int GetResourceType(.float resource_field);
 /// \param[in] resource_type Type of the resource.
 /// \return Entity field for that resource.
 .float GetResourceField(int resource_type);
+
+/// \brief Legacy fields for the resources. To be removed.
+.float health;
+.float armorvalue;
index f59bcad22403a65fd5ae46d818284cd18f46015b..dcf5a32f4628c07886bcbaa2bc49e3d39e5218cb 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once
 
 #include "pickup.qh"
+#include <common/items/all.qh>
 #ifdef SVQC
     #include <common/t_items.qh>
     #include <server/resources.qh>