summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:03:44 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:12 +0200
commit30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (patch)
treeacc6dab5d6894a949df3ab4d913ef72a1b1ebdca /src/localplayer.cpp
parentb499cf0c03f2589d36a1df14c81530347243940a (diff)
downloadmana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.gz
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.bz2
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.xz
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.zip
Moved Events to Mana::Event::Type
Acked-by: Jared Adams
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 3e59e794..1e1d5de0 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1109,7 +1109,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event)
{
if (channel == CHANNEL_ACTORSPRITE)
{
- if (event.getName() == EVENT_DESTROYED)
+ if (event.getType() == Mana::Event::Destroyed)
{
ActorSprite *actor = event.getActor("source");
@@ -1122,7 +1122,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event)
}
else if (channel == CHANNEL_ATTRIBUTES)
{
- if (event.getName() == EVENT_UPDATEATTRIBUTE)
+ if (event.getType() == Mana::Event::UpdateAttribute)
{
if (event.getInt("id") == EXP)
{
@@ -1135,7 +1135,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event)
}
else if (channel == CHANNEL_CONFIG)
{
- if (event.getName() == EVENT_CONFIGOPTIONCHANGED &&
+ if (event.getType() == Mana::Event::ConfigOptionChanged &&
event.getString("option") == "showownname")
{
setShowName(config.getValue("showownname", 1));