diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-22 18:51:36 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-22 18:51:36 +0200 |
commit | ec3c689c64922baf4a9f99bc6e9345e0a80403e8 (patch) | |
tree | 7d8a17271650f199e7f90b47a4f40532b28de25d /src/map.cpp | |
parent | 2e08f723375023e203654381b2a49d63c9565824 (diff) | |
download | Mana-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.gz Mana-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.bz2 Mana-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.xz Mana-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.zip |
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.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |