diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 23:58:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 23:58:39 +0300 |
commit | 0a39e956218ca15bf78803f89141c7c9dfcec0d9 (patch) | |
tree | adfc0fcd42792ddad6b3cb8843d6fe0c22170580 /src/utils | |
parent | 69022cd939e572feadaadf1041ae7dadad782ed6 (diff) | |
download | manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.gz manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.bz2 manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.xz manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.zip |
Change format in ActorType enum.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/chatutils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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("<PLAYER>") != 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, "<PLAYER>", target->getName()); @@ -113,10 +113,10 @@ void replaceVars(std::string &str) if (str.find("<MONSTER>") != 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, "<MONSTER>", target->getName()); |