From 7040d6071e3cbb7eafd9b67108952a1342cac572 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Jan 2018 00:31:58 +0300 Subject: Add server[MAX_SERVERS] into login interface. --- src/login/login.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/login/login.h') diff --git a/src/login/login.h b/src/login/login.h index 3af54ef50..b846e2bb7 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -157,6 +157,10 @@ struct online_login_data { #define MAX_SERVERS 30 +struct s_login_dbs { + struct mmo_char_server server[MAX_SERVERS]; +}; + /** * Login.c Interface **/ @@ -166,6 +170,7 @@ struct login_interface { int fd; struct Login_Config *config; struct AccountDB* accounts; + struct s_login_dbs *dbs; int (*mmo_auth) (struct login_session_data* sd, bool isServer); int (*mmo_auth_new) (const char* userid, const char* pass, const char sex, const char* last_ip); @@ -235,8 +240,6 @@ struct login_interface { }; #ifdef HERCULES_CORE -extern struct mmo_char_server server[MAX_SERVERS]; - void login_defaults(void); #endif // HERCULES_CORE -- cgit v1.2.3-60-g2f50