summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-11-11 23:12:29 -0500
committerChuck Miller <shadowmil@gmail.com>2010-11-11 23:12:29 -0500
commita4640305fd0d88c6332112712aa69e496368e01b (patch)
tree0f039b331026ca2b9718a920b24e2344f9e56b25 /src/gui/ministatus.cpp
parent5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (diff)
downloadMana-a4640305fd0d88c6332112712aa69e496368e01b.tar.gz
Mana-a4640305fd0d88c6332112712aa69e496368e01b.tar.bz2
Mana-a4640305fd0d88c6332112712aa69e496368e01b.tar.xz
Mana-a4640305fd0d88c6332112712aa69e496368e01b.zip
Replace Event names with enums instead of strings
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index ab01dbbd..fae40d03 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -123,7 +123,7 @@ void MiniStatusWindow::event(Channels channel, const Mana::Event &event)
{
if (channel == CHANNEL_ATTRIBUTES)
{
- if (event.getName() == "UpdateAttribute")
+ if (event.getName() == EVENT_UPDATEATTRIBUTE)
{
int id = event.getInt("id");
if (id == HP || id == MAX_HP)
@@ -142,7 +142,7 @@ void MiniStatusWindow::event(Channels channel, const Mana::Event &event)
}
else if (channel == CHANNEL_ACTORSPRITE)
{
- if (event.getName() == "UpdateStatusEffect")
+ if (event.getName() == EVENT_UPDATESTATUSEFFECT)
{
int index = event.getInt("index");
bool newStatus = event.getBool("newStatus");