From b82691d524fa9149dd298c505723f79cefcd3851 Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Sun, 26 Dec 2004 05:42:26 +0000 Subject: *** empty log message *** --- src/gui/login.cpp | 4 ++-- src/gui/login.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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 #endif +extern Configuration config; + /** * The login dialog. * -- cgit v1.2.3-70-g09d2