diff options
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 b60ee6f7..a0e7184d 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -87,14 +87,14 @@ LocalPlayer::LocalPlayer(int id, int subtype): mMessageTime(0), mShowIp(false) { - listen("Attributes"); + listen(CHANNEL_ATTRIBUTES); mUpdateName = true; config.addListener("showownname", this); setShowName(config.getValue("showownname", 1)); - listen("ActorSprite"); + listen(CHANNEL_ACTORSPRITE); } LocalPlayer::~LocalPlayer() @@ -1084,9 +1084,9 @@ void LocalPlayer::optionChanged(const std::string &value) } } -void LocalPlayer::event(const std::string &channel, const Mana::Event &event) +void LocalPlayer::event(Channels channel, const Mana::Event &event) { - if (channel == "ActorSprite") + if (channel == CHANNEL_ACTORSPRITE) { if (event.getName() == "Destroyed") { @@ -1099,7 +1099,7 @@ void LocalPlayer::event(const std::string &channel, const Mana::Event &event) mTarget = 0; } } - else if (channel == "Attributes") + else if (channel == CHANNEL_ATTRIBUTES) { if (event.getName() == "UpdateAttribute") { |