diff options
author | hemagx <hemagx2@gmail.com> | 2016-04-25 02:50:32 +0200 |
---|---|---|
committer | hemagx <hemagx2@gmail.com> | 2016-04-25 02:50:32 +0200 |
commit | ef5d339ba4b7f4ccbc332023367f325c2108bffc (patch) | |
tree | 76e77c4c95561cb55833590ce34ecd4a70d4d1d9 /src | |
parent | 6fbd119b63d166f3ab3435fb275259882e3ee2e8 (diff) | |
download | hercules-ef5d339ba4b7f4ccbc332023367f325c2108bffc.tar.gz hercules-ef5d339ba4b7f4ccbc332023367f325c2108bffc.tar.bz2 hercules-ef5d339ba4b7f4ccbc332023367f325c2108bffc.tar.xz hercules-ef5d339ba4b7f4ccbc332023367f325c2108bffc.zip |
Reduced the MAX_MAP_SERVERS setting to 1
Multi-zone support is deprecated and should not be used on a production server.
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 8 | ||||
-rw-r--r-- | src/char/char.h | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 929473e33..8f3d5b0c9 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -62,6 +62,14 @@ #include <stdlib.h> #include <sys/types.h> +#if MAX_MAP_SERVERS > 1 +# ifdef _MSC_VER +# pragma message("WARNING: your settings allow more than one map server to connect, this is deprecated dangerous feature USE IT AT YOUR OWN RISK") +# else +# warning your settings allow more than one map server to connect, this is deprecated dangerous feature USE IT AT YOUR OWN RISK +# endif +#endif + // private declarations char char_db[256] = "char"; char scdata_db[256] = "sc_data"; diff --git a/src/char/char.h b/src/char/char.h index 9cde18e96..a0cfb3bd7 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -68,7 +68,11 @@ struct mmo_map_server { VECTOR_DECL(uint16) maps; }; -#define MAX_MAP_SERVERS 2 +/** + * deprecated feature, multi map been a dangerous in-complete feature for so long and going to be removed. + * USE IT AT YOUR OWN RISK! + */ +#define MAX_MAP_SERVERS 1 #define DEFAULT_AUTOSAVE_INTERVAL (300*1000) |