summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-12-30 16:27:24 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-12-30 16:27:24 +0000
commitea653b2e9e1b46a07440833f96b3d2b788592c61 (patch)
tree252bb23d2064d14d4aa0796aa159f94873cb6419 /src/main.cpp
parent57d63f1dd5df0beb1a3d81f014686a2f80dfe7fc (diff)
downloadmana-ea653b2e9e1b46a07440833f96b3d2b788592c61.tar.gz
mana-ea653b2e9e1b46a07440833f96b3d2b788592c61.tar.bz2
mana-ea653b2e9e1b46a07440833f96b3d2b788592c61.tar.xz
mana-ea653b2e9e1b46a07440833f96b3d2b788592c61.zip
Added a new item, improved smooth login sequence, added a registration window (a lot of duplicated code to be removed).
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7daba4bf..3121f57f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -56,6 +56,7 @@
#include "gui/gui.h"
#include "gui/login.h"
#include "gui/ok_dialog.h"
+#include "gui/register.h"
#include "gui/updatewindow.h"
#include "resources/image.h"
@@ -465,6 +466,11 @@ int main(int argc, char *argv[])
currentDialog = new LoginDialog();
inputHandler = loginInputHandler;
break;
+ case REGISTER_STATE:
+ logger->log("State: REGISTER");
+ currentDialog = new RegisterDialog();
+ inputHandler = loginInputHandler;
+ break;
case CHAR_SERVER_STATE:
logger->log("State: CHAR_SERVER");
currentDialog = new ServerSelectDialog();