From ef5d339ba4b7f4ccbc332023367f325c2108bffc Mon Sep 17 00:00:00 2001 From: hemagx Date: Mon, 25 Apr 2016 02:50:32 +0200 Subject: Reduced the MAX_MAP_SERVERS setting to 1 Multi-zone support is deprecated and should not be used on a production server. --- src/char/char.c | 8 ++++++++ src/char/char.h | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'src/char') 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 #include +#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) -- cgit v1.2.3-70-g09d2