From ec3c689c64922baf4a9f99bc6e9345e0a80403e8 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 22 Jun 2011 18:51:36 +0200 Subject: Applied fixes requested by cody. - Made the map teleport distance fixed for manaserv. - Small cleanups. The branch is considered reviewed by: Cody. Resolves Mana-Mantis: #74. --- src/map.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index e47e5b7a..3f1f9167 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -711,7 +711,7 @@ Position Map::checkNodeOffsets(int radius, unsigned char walkMask, && fy > (mTileHeight - radius) && fx > (mTileWidth - radius)) { fx = mTileWidth - radius; - fy = mTileHeight -radius; + fy = mTileHeight - radius; } // Fix coordinates so that the player does not seem to dig into walls. @@ -805,9 +805,9 @@ Path Map::findPath(int startX, int startY, int destX, int destY, unsigned char walkmask, int maxCost) { // The basic walking cost of a tile. - static const int basicCost = 100; + const int basicCost = 100; // Used to compute the path G cost for diagonal moves. - static const int GCOST_SQRT2 = 362 / 256; + const int GCOST_SQRT2 = 362 / 256; // Path to be built up (empty by default) Path path; -- cgit v1.2.3-60-g2f50