From e1418f378c66343a35db3791cbf0d54a4be3fbd3 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 15 Nov 2014 12:29:33 -0800 Subject: Generate most config parsers --- src/char/char.cpp | 4 ---- src/char/char.hpp | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/char') diff --git a/src/char/char.cpp b/src/char/char.cpp index 0bee093..a82a692 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -97,10 +97,6 @@ int anti_freeze_enable = 0; static std::chrono::seconds anti_freeze_interval = 6_s; -constexpr -std::chrono::milliseconds DEFAULT_AUTOSAVE_INTERVAL = - 5_min; - static Session *login_session, *char_session; static diff --git a/src/char/char.hpp b/src/char/char.hpp index 47d94d8..bcbdeb3 100644 --- a/src/char/char.hpp +++ b/src/char/char.hpp @@ -32,6 +32,9 @@ namespace tmwa { constexpr int MAX_MAP_SERVERS = 30; +constexpr +std::chrono::seconds DEFAULT_AUTOSAVE_INTERVAL = 5_min; + struct mmo_map_server { -- cgit v1.2.3-70-g09d2