From e0f98a1650a844a5941b5cb0c11a8097f86903cc Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Mon, 10 Jan 2011 20:46:58 +0100 Subject: Remove the player naturally avoid other beings for Manaserv. It could lead to (even small) curious desyncs making things worse to debug. Trivial. --- src/map.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index ea5cc976..09782699 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -33,6 +33,8 @@ #include "resources/image.h" #include "resources/resourcemanager.h" +#include "net/net.h" + #include "utils/dtor.h" #include "utils/stringutils.h" @@ -854,7 +856,9 @@ Path Map::findPath(int startX, int startY, int destX, int destY, // It costs extra to walk through a being (needs to be enough // to make it more attractive to walk around). - if (occupied(x, y)) + // N.B.: Specific to TmwAthena for now. + if (Net::getNetworkType() == ServerInfo::TMWATHENA && + occupied(x, y)) { Gcost += 3 * basicCost; } -- cgit v1.2.3-70-g09d2