diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index eba01d0f..ee0dad1b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -113,16 +113,12 @@ Uint32 nextFrame(Uint32 interval, void *param) return interval; } -struct ErrorListener : public gcn::ActionListener -{ - void action(const std::string& eventId) +namespace { + struct ErrorListener : public gcn::ActionListener { - if (eventId == "ok") - { - state = LOGIN_STATE; - } - } -} errorListener; + void action(const std::string& eventId) { state = LOGIN_STATE; } + } errorListener; +} /** * Do all initialization stuff |