summaryrefslogtreecommitdiff
path: root/src/common/core.h
diff options
context:
space:
mode:
authorprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-04 00:38:07 +0000
committerprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-04 00:38:07 +0000
commit8538670a61c726fbd52087fe392f0a3d961db630 (patch)
tree4d37f0ac7e29780e7794dd6aba1856a80dbae4b4 /src/common/core.h
parent2b6c40327a3e05a18bbfabd319a0735d75fbb8e9 (diff)
downloadhercules-8538670a61c726fbd52087fe392f0a3d961db630.tar.gz
hercules-8538670a61c726fbd52087fe392f0a3d961db630.tar.bz2
hercules-8538670a61c726fbd52087fe392f0a3d961db630.tar.xz
hercules-8538670a61c726fbd52087fe392f0a3d961db630.zip
Changed some defines into an enumerator.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15829 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/core.h')
-rw-r--r--src/common/core.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/common/core.h b/src/common/core.h
index 11b4f7c47..d48962c94 100644
--- a/src/common/core.h
+++ b/src/common/core.h
@@ -15,11 +15,14 @@ extern char **arg_v;
extern int runflag;
extern char *SERVER_NAME;
-#define ATHENA_SERVER_NONE 0 // not defined
-#define ATHENA_SERVER_LOGIN 1 // login server
-#define ATHENA_SERVER_CHAR 2 // char server
-#define ATHENA_SERVER_INTER 4 // inter server
-#define ATHENA_SERVER_MAP 8 // map server
+enum {
+ ATHENA_SERVER_NONE = 0, // not defined
+ ATHENA_SERVER_LOGIN = 1, // login server
+ ATHENA_SERVER_CHAR = 2, // char server
+ ATHENA_SERVER_INTER = 4, // inter server
+ ATHENA_SERVER_MAP = 8, // map server
+};
+
extern char SERVER_TYPE;
extern int parse_console(const char* buf);