diff options
-rw-r--r-- | src/gui/login.cpp | 4 | ||||
-rw-r--r-- | src/gui/login.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 252d9929..313ea516 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -147,8 +147,8 @@ void server_login(const std::string& user, const std::string& pass) { // Connect to login server ret = open_session( - get_config_string("server", "host", 0), - get_config_int("server", "port", 0)); + config.getValue("host", "animesites.de").c_str(), + (short)config.getValue("port", 0)); if (ret == SOCKET_ERROR) { state = LOGIN; diff --git a/src/gui/login.h b/src/gui/login.h index 884b0fd0..fba708c2 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -20,7 +20,7 @@ */ #ifndef _TMW_LOGIN_H -#define _TMW_LOGIN_H +#define _TMW_LOGIN_H #ifdef WIN32 #pragma warning (disable:4312) @@ -36,6 +36,8 @@ #include <winalleg.h> #endif +extern Configuration config; + /** * The login dialog. * |