summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-14 16:35:09 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-14 16:35:09 +0000
commit816d59fe6794436f499841a36b02058a96bfc9da (patch)
tree9b96a41ea44bc4292270b2f4b033936fd041ddfe
parent1a0108080d6f9f2708253b58f34b0adc0a679b24 (diff)
downloadmana-816d59fe6794436f499841a36b02058a96bfc9da.tar.gz
mana-816d59fe6794436f499841a36b02058a96bfc9da.tar.bz2
mana-816d59fe6794436f499841a36b02058a96bfc9da.tar.xz
mana-816d59fe6794436f499841a36b02058a96bfc9da.zip
Removed unused var.
-rw-r--r--ChangeLog6
-rw-r--r--src/gui/login.cpp6
-rw-r--r--src/gui/login.h1
3 files changed, 6 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 80316244..11a4241d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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();