summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 13:21:15 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 13:21:15 +0000
commit0c90838cef0d75e14097dc66c6b5210eef976029 (patch)
tree315da364b7d0d3b00d26220fe9a5c3113cd69f63 /src
parentae45030b2ebd5b07f8cfd234696fd024e6de9e66 (diff)
downloadmana-client-0c90838cef0d75e14097dc66c6b5210eef976029.tar.gz
mana-client-0c90838cef0d75e14097dc66c6b5210eef976029.tar.bz2
mana-client-0c90838cef0d75e14097dc66c6b5210eef976029.tar.xz
mana-client-0c90838cef0d75e14097dc66c6b5210eef976029.zip
Made cancel button in register dialog go back to the login dialog and cleaned
up two unused states.
Diffstat (limited to 'src')
-rw-r--r--src/gui/register.cpp2
-rw-r--r--src/main.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp
index 52833aea..8004d30e 100644
--- a/src/gui/register.cpp
+++ b/src/gui/register.cpp
@@ -119,7 +119,7 @@ RegisterDialog::action(const std::string &eventId, gcn::Widget *widget)
{
if (eventId == "cancel")
{
- state = STATE_EXIT;
+ state = STATE_LOGIN;
}
else if (eventId == "register")
{
diff --git a/src/main.h b/src/main.h
index 47c650af..089f3f18 100644
--- a/src/main.h
+++ b/src/main.h
@@ -47,8 +47,6 @@ enum {
STATE_REGISTER,
STATE_REGISTER_ATTEMPT,
STATE_CHAR_SELECT,
- STATE_CHAR_NEW,
- STATE_CHAR_DELETE,
STATE_ERROR,
STATE_CONNECT_GAME,
STATE_GAME,