summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
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();