summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-28 16:03:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-28 16:34:59 +0300
commitb96e6eeba6e1511568c8291bd8cb6a6d3706635c (patch)
treed021843c88d856f86f018547c30f1181290ffcbe /src/actormanager.cpp
parent60859a71dd9794b0216cc7a60146d417e06dbbad (diff)
downloadplus-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.tar.gz
plus-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.tar.bz2
plus-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.tar.xz
plus-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.zip
Remove define EATHENA_SUPPORT from all code.
Now eathena like support enabled always.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 4edd23476..e2bb85eb5 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -199,9 +199,7 @@ ActorManager::ActorManager() :
mActorsIdMap(),
mIdName(),
mBlockedBeings(),
-#ifdef EATHENA_SUPPORT
mChars(),
-#endif
mMap(nullptr),
mSpellHeal1(serverConfig.getValue("spellHeal1", "#lum")),
mSpellHeal2(serverConfig.getValue("spellHeal2", "#inma")),
@@ -277,11 +275,9 @@ Being *ActorManager::createBeing(const BeingId id,
mActorsIdMap[being->getId()] = being;
if (type == ActorType::Player
-#ifdef EATHENA_SUPPORT
|| type == ActorType::Mercenary
|| type == ActorType::Pet
|| type == ActorType::Homunculus
-#endif
|| type == ActorType::Npc)
{
being->updateFromCache();
@@ -592,12 +588,10 @@ void ActorManager::findBeingsByPixel(std::vector<ActorSprite*> &beings,
case ActorType::Npc:
case ActorType::Monster:
case ActorType::LocalPet:
-#ifdef EATHENA_SUPPORT
case ActorType::Pet:
case ActorType::Mercenary:
case ActorType::Homunculus:
case ActorType::SkillUnit:
-#endif
{
const Being *const being = static_cast<const Being*>(*it);
if (!being)
@@ -1003,9 +997,7 @@ void ActorManager::clear()
mActorsIdMap[localPlayer->getId()] = localPlayer;
}
-#ifdef EATHENA_SUPPORT
mChars.clear();
-#endif
}
Being *ActorManager::findNearestPvpPlayer() const
@@ -1391,10 +1383,8 @@ void ActorManager::healTarget() const
void ActorManager::heal(const Being *const target) const
{
-#ifdef EATHENA_SUPPORT
if (Net::getNetworkType() != ServerType::TMWATHENA)
return;
-#endif
if (!localPlayer ||
!chatWindow ||
@@ -1517,10 +1507,8 @@ Being* ActorManager::findMostDamagedPlayer(const int maxTileDist) const
void ActorManager::itenplz() const
{
-#ifdef EATHENA_SUPPORT
if (Net::getNetworkType() != ServerType::TMWATHENA)
return;
-#endif
if (!localPlayer ||
!chatWindow ||
!localPlayer->isAlive() ||
@@ -2178,7 +2166,6 @@ std::string ActorManager::getSeenPlayerById(const BeingId id) const
return std::string();
}
-#ifdef EATHENA_SUPPORT
void ActorManager::removeRoom(const int chatId)
{
for_actors
@@ -2237,5 +2224,3 @@ void ActorManager::addChar(const int32_t id,
guiInput->simulateMouseMove();
}
-
-#endif