summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-29 00:44:18 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-29 00:44:18 +0300
commite02996049927ca4f52852fe0e437010fd07238a3 (patch)
tree7ef583190ec9b20a7e35d880fcdc2c1c7cb51934 /src/client.cpp
parentbe3c1cf049d3df146d18acfb7cbead2ef3f660f1 (diff)
downloadmanaverse-e02996049927ca4f52852fe0e437010fd07238a3.tar.gz
manaverse-e02996049927ca4f52852fe0e437010fd07238a3.tar.bz2
manaverse-e02996049927ca4f52852fe0e437010fd07238a3.tar.xz
manaverse-e02996049927ca4f52852fe0e437010fd07238a3.zip
remove some code from deprivatedevent class.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/client.cpp b/src/client.cpp
index ccd00344a..05efccd92 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1134,10 +1134,7 @@ int Client::gameExec()
if (mState != mOldState)
{
BLOCK_START("Client::gameExec 7")
- DepricatedEvent evt(EVENT_STATECHANGE);
- evt.setInt("oldState", mOldState);
- evt.setInt("newState", mState);
- DepricatedEvent::trigger(CHANNEL_CLIENT, evt);
+ PlayerInfo::stateChange(mState);
if (mOldState == STATE_GAME)
{
@@ -1366,11 +1363,7 @@ int Client::gameExec()
BeingInfo::unknown = new BeingInfo;
TranslationManager::loadCurrentLang();
-
- DepricatedEvent evt2(EVENT_STATECHANGE);
- evt2.setInt("newState", STATE_LOAD_DATA);
- evt2.setInt("oldState", mOldState);
- DepricatedEvent::trigger(CHANNEL_CLIENT, evt2);
+ PlayerInfo::stateChange(mState);
// Load XML databases
CharDB::load();