From 0a39e956218ca15bf78803f89141c7c9dfcec0d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 23:58:39 +0300 Subject: Change format in ActorType enum. --- src/utils/chatutils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils/chatutils.cpp') diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp index ea37b7fd2..f3c9076be 100644 --- a/src/utils/chatutils.cpp +++ b/src/utils/chatutils.cpp @@ -100,10 +100,10 @@ void replaceVars(std::string &str) if (str.find("") != std::string::npos) { const Being *target = localPlayer->getTarget(); - if (!target || target->getType() != ActorType::PLAYER) + if (!target || target->getType() != ActorType::Player) { target = actorManager->findNearestLivingBeing( - localPlayer, 20, ActorType::PLAYER, true); + localPlayer, 20, ActorType::Player, true); } if (target) replaceAll(str, "", target->getName()); @@ -113,10 +113,10 @@ void replaceVars(std::string &str) if (str.find("") != std::string::npos) { const Being *target = localPlayer->getTarget(); - if (!target || target->getType() != ActorType::MONSTER) + if (!target || target->getType() != ActorType::Monster) { target = actorManager->findNearestLivingBeing( - localPlayer, 20, ActorType::MONSTER, true); + localPlayer, 20, ActorType::Monster, true); } if (target) replaceAll(str, "", target->getName()); -- cgit v1.2.3-60-g2f50