summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-03-04 15:04:14 +0100
committerBertram <yohanndotferreiraatorange.fr>2010-04-12 23:50:22 +0200
commitcd727d2223bc51f282bec29d666a0f5f30bdd151 (patch)
tree1d8cd6be12ec1ea42a088bb2b4a5705f1bac4ee0 /src/map.cpp
parent27c7c5f725f5cf1e3393df9393b08fdc26057212 (diff)
downloadmana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.gz
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.bz2
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.xz
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.zip
Reviewed the LocalPlayer::nextTile() function. The ManaServ movement system is functional!!
Introduced LocalPlayer::getNextWalkPosition(unsigned char dir) which takes care about the player next position while moving using keyboard. I removed the pixel scaler thing because it couldn't handle all the noticed cases and was rather heavy. There is still a bug in the movement system (nothing's perfect) but it's very rare and this is here in eAthena, too. So, I'll give a try at taking care of it once I'll have polished all of this a bit. Please try and give feedback!!
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 01a71375..3da94ea8 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -703,11 +703,11 @@ Path Map::findPixelPath(int startPixelX, int startPixelY, int endPixelX,
return myPath;
}
-static int const basicCost = 100;
-
Path Map::findPath(int startX, int startY, int destX, int destY,
unsigned char walkmask, int maxCost)
{
+ static int const basicCost = 100;
+
// Path to be built up (empty by default)
Path path;