Ver código fonte

Reduced MAX_MAP_SERVERS and MAX_SERVERS size (#4099)

* Reduced MAX_MAP_SERVERS down to 2.
* Reduced MAX_SERVERS down to 5.
Aleos 6 anos atrás
pai
commit
7e7a28315e
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      src/char/char.hpp
  2. 1 1
      src/login/login.hpp

+ 1 - 1
src/char/char.hpp

@@ -193,7 +193,7 @@ struct CharServ_Config {
 };
 extern struct CharServ_Config charserv_config;
 
-#define MAX_MAP_SERVERS 30 //how many mapserver a char server can handle
+#define MAX_MAP_SERVERS 2 //how many mapserver a char server can handle
 struct mmo_map_server {
 	int fd;
 	uint32 ip;

+ 1 - 1
src/login/login.hpp

@@ -47,7 +47,7 @@ struct login_session_data {
 	int fd;				///socket of client
 };
 
-#define MAX_SERVERS 30 //max number of mapserv that could be attach
+#define MAX_SERVERS 5 //max number of mapserv that could be attach
 ///Struct describing 1 char-serv attach to us
 struct mmo_char_server {
 	char name[20];	///char-serv name