From e2f4f38f2e54bf029483fbc0d3b8090d035b6e2d Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 17 Jun 2018 03:28:57 +1000 Subject: [PATCH] Move the hard resource limit constant to common --- qcsrc/client/resources.qh | 3 --- qcsrc/common/resources.qh | 3 +++ qcsrc/server/resources.qh | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) 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. -- 2.39.2