summaryrefslogtreecommitdiff
path: root/src/map/config
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-23 05:29:26 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-23 05:29:26 +0000
commit9b68ab5698a641e9ffa8b1f90cd0c5edfa6ce812 (patch)
treedb7eff4a75f7c59ef35bc609306ad5d744475098 /src/map/config
parent317e424ab29a8d670657f639a46ec5519825fde3 (diff)
downloadhercules-9b68ab5698a641e9ffa8b1f90cd0c5edfa6ce812.tar.gz
hercules-9b68ab5698a641e9ffa8b1f90cd0c5edfa6ce812.tar.bz2
hercules-9b68ab5698a641e9ffa8b1f90cd0c5edfa6ce812.tar.xz
hercules-9b68ab5698a641e9ffa8b1f90cd0c5edfa6ce812.zip
Some minor code cleanup (gepard's idea from some time ago)
- Removed a dozen #REMODE checks. - Added a typedef for the def type var git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15776 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config')
-rw-r--r--src/map/config/Data/Const.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/map/config/Data/Const.h b/src/map/config/Data/Const.h
index 88b00ea21..b4984f9c2 100644
--- a/src/map/config/Data/Const.h
+++ b/src/map/config/Data/Const.h
@@ -42,9 +42,22 @@
* Path within the /db folder to (non-)renewal specific db files
**/
#if REMODE
-#define DBPATH "re/"
+ #define DBPATH "re/"
#else
-#define DBPATH "pre-re/"
+ #define DBPATH "pre-re/"
+#endif
+
+/**
+ * DefType
+ **/
+#if REMODE
+ typedef short defType;
+ #define DEFTYPE_MIN SHRT_MIN
+ #define DEFTYPE_MAX SHRT_MAX
+#else
+ typedef signed char defType;
+ #define DEFTYPE_MIN CHAR_MIN
+ #define DEFTYPE_MAX CHAR_MAX
#endif
/**