summaryrefslogtreecommitdiff
path: root/src/actions/pets.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-15 22:03:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-16 13:50:43 +0300
commit23034a47937c109590eb60e4ee0efa32a8c9e45e (patch)
tree844c716da20752dcbb0aead649011f54d8062635 /src/actions/pets.cpp
parent4638f969d4206ba8dd857eb6d2758106cc5268df (diff)
downloadmanaverse-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.gz
manaverse-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.bz2
manaverse-23034a47937c109590eb60e4ee0efa32a8c9e45e.tar.xz
manaverse-23034a47937c109590eb60e4ee0efa32a8c9e45e.zip
Remove useless includes from cpp files
Diffstat (limited to 'src/actions/pets.cpp')
-rw-r--r--src/actions/pets.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp
index 7e046758c..8f6d8833c 100644
--- a/src/actions/pets.cpp
+++ b/src/actions/pets.cpp
@@ -34,7 +34,9 @@
#include "listeners/inputactionreplaylistener.h"
#include "net/chathandler.h"
+#ifdef TMWA_SUPPORT
#include "net/net.h"
+#endif
#include "net/pethandler.h"
#include "net/serverfeatures.h"
@@ -61,10 +63,14 @@ static const Being *getPet()
return *pets.begin();
}
#endif
+#ifdef EATHENA_SUPPORT
const int id = PlayerInfo::getPetBeingId();
if (!id)
return nullptr;
return actorManager->findBeing(id);
+#else
+ return nullptr;
+#endif
}
impHandler(commandEmotePet)