From: Mario Date: Sat, 16 Jun 2018 17:28:57 +0000 (+1000) Subject: Move the hard resource limit constant to common X-Git-Tag: xonotic-v0.8.5~2034 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e2f4f38f2e54bf029483fbc0d3b8090d035b6e2d;p=xonotic%2Fxonotic-data.pk3dir.git Move the hard resource limit constant to common --- diff --git a/qcsrc/client/resources.qh b/qcsrc/client/resources.qh index d1079e7e8..196ccf05d 100644 --- a/qcsrc/client/resources.qh +++ b/qcsrc/client/resources.qh @@ -6,9 +6,6 @@ #include -/// \brief Unconditional maximum amount of resources the entity can have. -const int RESOURCE_AMOUNT_HARD_LIMIT = 999; - // ============================ Public API ==================================== /// \brief Returns the current amount of resource the given entity has. diff --git a/qcsrc/common/resources.qh b/qcsrc/common/resources.qh index a562292b4..7e81f05dd 100644 --- a/qcsrc/common/resources.qh +++ b/qcsrc/common/resources.qh @@ -5,6 +5,9 @@ /// \author Lyberta /// \copyright GNU GPLv2 or any later version. +/// \brief Unconditional maximum amount of resources the entity can have. +const int RESOURCE_AMOUNT_HARD_LIMIT = 999; + /// \brief Describes the available resource types. enum { diff --git a/qcsrc/server/resources.qh b/qcsrc/server/resources.qh index 47ed972d2..e35346c19 100644 --- a/qcsrc/server/resources.qh +++ b/qcsrc/server/resources.qh @@ -7,9 +7,6 @@ #include -/// \brief Unconditional maximum amount of resources the entity can have. -const int RESOURCE_AMOUNT_HARD_LIMIT = 999; - // ============================ Public API ==================================== /// \brief Returns the maximum amount of the given resource.