summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-28 21:12:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-28 21:12:15 +0300
commitb96242e1d5a6af71e6f884596f77268743945c63 (patch)
tree1fc425037771265a1134956641c466095b7349a1 /src/actions
parent0cc662938674c22bb5a3d1e1521fe90eb28121e4 (diff)
downloadmv-b96242e1d5a6af71e6f884596f77268743945c63.tar.gz
mv-b96242e1d5a6af71e6f884596f77268743945c63.tar.bz2
mv-b96242e1d5a6af71e6f884596f77268743945c63.tar.xz
mv-b96242e1d5a6af71e6f884596f77268743945c63.zip
Build homunculushandler only if eathena enabled.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 25be294a0..f51620e11 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -773,18 +773,26 @@ impHandler(serverUnIgnoreWhisper)
impHandler(setHomunculusName)
{
+#ifdef EATHENA_SUPPORT
const std::string args = event.args;
if (args.empty())
return false;
homunculusHandler->setName(args);
return true;
+#else
+ return false;
+#endif
}
impHandler0(fireHomunculus)
{
+#ifdef EATHENA_SUPPORT
homunculusHandler->fire();
return true;
+#else
+ return false;
+#endif
}
impHandler0(leaveParty)
@@ -808,6 +816,7 @@ impHandler(warp)
impHandler(homunTalk)
{
+#ifdef EATHENA_SUPPORT
if (!serverFeatures->haveTalkPet())
return false;
@@ -816,10 +825,14 @@ impHandler(homunTalk)
args = textToMe(args);
homunculusHandler->talk(args);
return true;
+#else
+ return false;
+#endif
}
impHandler(homunEmote)
{
+#ifdef EATHENA_SUPPORT
if (!serverFeatures->haveTalkPet())
return false;
@@ -833,18 +846,23 @@ impHandler(homunEmote)
Game::instance()->setValidSpeed();
return true;
}
+#endif
return false;
}
impHandler(commandHomunEmote)
{
+#ifdef EATHENA_SUPPORT
if (!serverFeatures->haveTalkPet())
return false;
homunculusHandler->emote(static_cast<uint8_t>(
atoi(event.args.c_str())));
return true;
+#else
+ return false;
+#endif
}
} // namespace Actions