summaryrefslogtreecommitdiff
path: root/src/utils/chatutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 17:00:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 17:00:00 +0300
commit21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c (patch)
tree2e366420e85c18fc4c687cc7ab5d1dd2f46df365 /src/utils/chatutils.cpp
parent5b0c6c5c95645813f96ea413b1c14f2ffc18a481 (diff)
downloadplus-21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c.tar.gz
plus-21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c.tar.bz2
plus-21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c.tar.xz
plus-21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c.zip
Add strong typed bool type AllowSort.
Diffstat (limited to 'src/utils/chatutils.cpp')
-rw-r--r--src/utils/chatutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp
index 903c6eefa..794a21330 100644
--- a/src/utils/chatutils.cpp
+++ b/src/utils/chatutils.cpp
@@ -115,7 +115,7 @@ void replaceVars(std::string &str)
if (!target || target->getType() != ActorType::Player)
{
target = actorManager->findNearestLivingBeing(
- localPlayer, 20, ActorType::Player, true);
+ localPlayer, 20, ActorType::Player, AllowSort_true);
}
if (target)
replaceAll(str, "<PLAYER>", target->getName());
@@ -128,7 +128,7 @@ void replaceVars(std::string &str)
if (!target || target->getType() != ActorType::Monster)
{
target = actorManager->findNearestLivingBeing(
- localPlayer, 20, ActorType::Monster, true);
+ localPlayer, 20, ActorType::Monster, AllowSort_true);
}
if (target)
replaceAll(str, "<MONSTER>", target->getName());