summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2009-12-18 21:43:53 +0100
committerFreeyorp <Freeyorp101@hotmail.com>2009-12-19 19:12:15 +1300
commit6ad0ab8123de1ee3f27ad38300dc7ef896bab569 (patch)
tree785e9bd0f019e74329b080116d03b7c1b10d82b0 /src/main.h
parent7018bbb12c0807efb93acc5d90ec20d59cb3f1a9 (diff)
downloadmana-6ad0ab8123de1ee3f27ad38300dc7ef896bab569.tar.gz
mana-6ad0ab8123de1ee3f27ad38300dc7ef896bab569.tar.bz2
mana-6ad0ab8123de1ee3f27ad38300dc7ef896bab569.tar.xz
mana-6ad0ab8123de1ee3f27ad38300dc7ef896bab569.zip
Client now returns to server selection after server disconnection
This resolves http://bugs.manasource.org/view.php?id=37
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 765b84b8..4938e80d 100644
--- a/src/main.h
+++ b/src/main.h
@@ -55,6 +55,8 @@
#include "net/logindata.h"
+#include <guichan/actionlistener.hpp>
+
#ifdef HAVE_CONFIG_H
#include "../config.h"
#elif defined WIN32
@@ -131,8 +133,15 @@ enum State {
STATE_FORCE_QUIT
};
+class ErrorListener : public gcn::ActionListener
+{
+ public:
+ void action(const gcn::ActionEvent &event);
+};
+
extern State state;
extern std::string errorMessage;
+extern ErrorListener errorListener;
extern LoginData loginData;
#endif