diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-22 01:44:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-22 01:44:36 +0300 |
commit | 2925b20acb9f70d032cd5981687642a770778c53 (patch) | |
tree | e9dd3bd137dd359b8a0845487520ac28f5e3bdb7 /src/client.cpp | |
parent | ab0b6df9f69a736f79d2233508d8aa88b8e11800 (diff) | |
download | manaplus-2925b20acb9f70d032cd5981687642a770778c53.tar.gz manaplus-2925b20acb9f70d032cd5981687642a770778c53.tar.bz2 manaplus-2925b20acb9f70d032cd5981687642a770778c53.tar.xz manaplus-2925b20acb9f70d032cd5981687642a770778c53.zip |
Rename object event to depricatedevent because current implimentation very
bad and must be replaced with better implimentation.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp index 4462c1a5d..62147874d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -26,9 +26,9 @@ #include "auctionmanager.h" #include "chatlogger.h" #include "configuration.h" +#include "depricatedevent.h" #include "dropshortcut.h" #include "emoteshortcut.h" -#include "event.h" #include "game.h" #include "guild.h" #include "guildmanager.h" @@ -998,10 +998,10 @@ int Client::gameExec() if (mState != mOldState) { - Event evt(EVENT_STATECHANGE); + DepricatedEvent evt(EVENT_STATECHANGE); evt.setInt("oldState", mOldState); evt.setInt("newState", mState); - Event::trigger(CHANNEL_CLIENT, evt); + DepricatedEvent::trigger(CHANNEL_CLIENT, evt); if (mOldState == STATE_GAME) { @@ -1215,10 +1215,10 @@ int Client::gameExec() TranslationManager::loadCurrentLang(); - Event evt2(EVENT_STATECHANGE); + DepricatedEvent evt2(EVENT_STATECHANGE); evt2.setInt("newState", STATE_LOAD_DATA); evt2.setInt("oldState", mOldState); - Event::trigger(CHANNEL_CLIENT, evt2); + DepricatedEvent::trigger(CHANNEL_CLIENT, evt2); // Load XML databases CharDB::load(); |