diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-09 19:49:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-09 19:49:14 +0300 |
commit | 7e3bd20e9675202e30fac741f3d3acb4f19b109d (patch) | |
tree | 9e12ab198b68e8f6ed0dd2121a72066c7b7053ba /src/localplayer.cpp | |
parent | b9d66c41246fef56e41f600b5523a5ff1a29a1c8 (diff) | |
download | manaverse-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.gz manaverse-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.bz2 manaverse-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.xz manaverse-7e3bd20e9675202e30fac741f3d3acb4f19b109d.zip |
Small refactoring based on idea from mana commit 30d4b0adf4f17f05d1d62fc3428c896ef1079b6b
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 7cf26cd44..2497e09f9 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -124,7 +124,7 @@ LocalPlayer::LocalPlayer(int id, int subtype): { logger->log1("LocalPlayer::LocalPlayer"); - listen(CHANNEL_ATTRIBUTES); + listen(Mana::CHANNEL_ATTRIBUTES); mLevel = 1; mAwayListener = new AwayListener(); @@ -1547,11 +1547,11 @@ void LocalPlayer::optionChanged(const std::string &value) mShowJobExp = config.getBoolValue("showJobExp"); } -void LocalPlayer::event(Channels channel, const Mana::Event &event) +void LocalPlayer::event(Mana::Channels channel, const Mana::Event &event) { - if (channel == CHANNEL_ATTRIBUTES) + if (channel == Mana::CHANNEL_ATTRIBUTES) { - if (event.getName() == EVENT_UPDATEATTRIBUTE) + if (event.getName() == Mana::EVENT_UPDATEATTRIBUTE) { switch (event.getInt("id")) { @@ -1574,7 +1574,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event) break; }; } - else if (event.getName() == EVENT_UPDATESTAT) + else if (event.getName() == Mana::EVENT_UPDATESTAT) { if (!mShowJobExp) return; |