diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/gui/login.cpp | 6 | ||||
-rw-r--r-- | src/gui/login.h | 1 |
3 files changed, 6 insertions, 7 deletions
@@ -1,4 +1,8 @@ -2006-01-10 Philipp Sehmisch <tmw@crushnet.org> +2006-01-14 Björn Steinbrink <B.Steinbrink@gmx.de> + + * src/gui/login.cpp, src/gui/login.h: Removed unused var. + +2006-01-10 Philipp Sehmisch <tmw@crushnet.org> * data/graphics/tiles/Woodland.png: color modifications * data/maps/new_9-1.tmx.gz: some more errors fixed diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 13908bf9..9c198dbb 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -65,7 +65,7 @@ WrongDataNoticeListener::action(const std::string &eventId) } LoginDialog::LoginDialog(): - Window("Login"), mStatus(NET_IDLE), registration(false) + Window("Login"), mStatus(NET_IDLE) { userLabel = new gcn::Label("Name:"); passLabel = new gcn::Label("Password:"); @@ -229,10 +229,6 @@ LoginDialog::logic() logger->log("Connected..."); std::string user = userField->getText(); const std::string password = passField->getText(); - if (registration) - { - user += "_M"; - } attemptLogin(user, password); mStatus = NET_DATA; break; diff --git a/src/gui/login.h b/src/gui/login.h index 52ec27b1..cc6ace3d 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -89,7 +89,6 @@ class LoginDialog : public Window, public gcn::ActionListener { gcn::Button *cancelButton; gcn::Button *registerButton; int mStatus; - bool registration; void attemptLogin(const std::string& user, const std::string& pass); void checkLogin(); |