summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 21:45:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 21:45:33 +0300
commitadc96cc9f4247ceafc5fde66055456494861b139 (patch)
treede2b3d96297bce39f7e487ba135116c5f2aaaf3e /src/progs/manaplus/actions/commands.cpp
parentdc6de526dbdf0145fa3ac0a65d485f40b1722199 (diff)
downloadmv-adc96cc9f4247ceafc5fde66055456494861b139.tar.gz
mv-adc96cc9f4247ceafc5fde66055456494861b139.tar.bz2
mv-adc96cc9f4247ceafc5fde66055456494861b139.tar.xz
mv-adc96cc9f4247ceafc5fde66055456494861b139.zip
Remove default parameters from actormanager.cpp
Diffstat (limited to 'src/progs/manaplus/actions/commands.cpp')
-rw-r--r--src/progs/manaplus/actions/commands.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/progs/manaplus/actions/commands.cpp b/src/progs/manaplus/actions/commands.cpp
index 985a17a5f..54b8c28bd 100644
--- a/src/progs/manaplus/actions/commands.cpp
+++ b/src/progs/manaplus/actions/commands.cpp
@@ -380,7 +380,8 @@ impHandler(setTarget)
if ((actorManager == nullptr) || (localPlayer == nullptr))
return false;
- Being *const target = actorManager->findNearestByName(event.args);
+ Being *const target = actorManager->findNearestByName(event.args,
+ ActorType::Unknown);
if (target != nullptr)
localPlayer->setTarget(target);
return true;
@@ -500,7 +501,8 @@ impHandler(navigateTo)
if (args.empty())
return true;
- Being *const being = actorManager->findBeingByName(args);
+ Being *const being = actorManager->findBeingByName(args,
+ ActorType::Unknown);
if (being != nullptr)
{
localPlayer->navigateTo(being->getTileX(), being->getTileY());