diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-07 17:14:27 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-07 17:14:27 +0000 |
commit | f54bd48a884e4e3c95818f042a4b2418a6e070a4 (patch) | |
tree | 73e82729a2f97b58e94ffd6944ac1ad47bf8314e /src/core | |
parent | f8d1ee921c83b7b148883b3ee16e4ec9c776d6db (diff) |
working button click
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/application.cc | 7 | ||||
-rw-r--r-- | src/core/application.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/application.cc b/src/core/application.cc index c02db9b..3f08a36 100644 --- a/src/core/application.cc +++ b/src/core/application.cc @@ -348,12 +348,15 @@ void Application::connect(std::string const &host) if (!application_game->running()) { delete application_game; application_game = 0; + } else { + notify_connect(); } } else { application_game = new GameServer(); if (application_game->running()) { con_print << "^BConnected to local game.\n"; + notify_connect(); } else { delete application_game; application_game = 0; @@ -544,4 +547,8 @@ void Application::notify_disconnect() } +void Application::notify_connect() +{ +} + } diff --git a/src/core/application.h b/src/core/application.h index 3769941..9ac82f7 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -75,6 +75,9 @@ public: /// zone clear notification virtual void notify_zoneclear(Zone *zone); + /// connect notification + virtual void notify_connect(); + /// disconnect notification virtual void notify_disconnect(); |