summaryrefslogtreecommitdiff
path: root/src/mmo/consts.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:16:45 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:33:42 -0700
commit7af4c5b5c561362cb1135ab504095ae667a9270a (patch)
tree49ffd3008d7634ba36f3951493a68e928407ce89 /src/mmo/consts.hpp
parent8d7f1dadeeb1dc1609b72de5a4ee3a5247b0e9e6 (diff)
downloadtmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.gz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.bz2
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.xz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.zip
This is more reliable
Diffstat (limited to 'src/mmo/consts.hpp')
-rw-r--r--src/mmo/consts.hpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/mmo/consts.hpp b/src/mmo/consts.hpp
index 0fdd7de..2a20cff 100644
--- a/src/mmo/consts.hpp
+++ b/src/mmo/consts.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_MMO_CONSTS_HPP
-#define TMWA_MMO_CONSTS_HPP
+#pragma once
// consts.hpp - Huge mess of constants.
//
// Copyright © ????-2004 Athena Dev Teams
@@ -21,12 +20,12 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "fwd.hpp"
+#include "fwd.hpp"
-# include "../net/timer.t.hpp"
+#include "../net/timer.t.hpp"
-# include "ids.hpp"
-# include "strs.hpp"
+#include "ids.hpp"
+#include "strs.hpp"
namespace tmwa
@@ -48,12 +47,12 @@ constexpr interval_t MAX_WALK_SPEED = std::chrono::seconds(1);
constexpr int MAX_STORAGE = 300;
constexpr int MAX_PARTY = 12;
-# define MIN_HAIR_STYLE battle_config.min_hair_style
-# define MAX_HAIR_STYLE battle_config.max_hair_style
-# define MIN_HAIR_COLOR battle_config.min_hair_color
-# define MAX_HAIR_COLOR battle_config.max_hair_color
-# define MIN_CLOTH_COLOR battle_config.min_cloth_color
-# define MAX_CLOTH_COLOR battle_config.max_cloth_color
+#define MIN_HAIR_STYLE battle_config.min_hair_style
+#define MAX_HAIR_STYLE battle_config.max_hair_style
+#define MIN_HAIR_COLOR battle_config.min_hair_color
+#define MAX_HAIR_COLOR battle_config.max_hair_color
+#define MIN_CLOTH_COLOR battle_config.min_cloth_color
+#define MAX_CLOTH_COLOR battle_config.max_cloth_color
// WTF is this doing here?
struct PartyMember
@@ -65,5 +64,3 @@ struct PartyMember
struct map_session_data *sd;
};
} // namespace tmwa
-
-#endif // TMWA_MMO_CONSTS_HPP