summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-22 18:51:36 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-22 18:51:36 +0200
commitec3c689c64922baf4a9f99bc6e9345e0a80403e8 (patch)
tree7d8a17271650f199e7f90b47a4f40532b28de25d /src/being.cpp
parent2e08f723375023e203654381b2a49d63c9565824 (diff)
downloadmana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.gz
mana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.bz2
mana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.xz
mana-client-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/being.cpp')
-rw-r--r--src/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 69c233f2..42043313 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -196,8 +196,8 @@ void Being::setDestination(int dstX, int dstY)
return;
// If the destination is unwalkable, don't bother trying to get there
- int tileWidth = mMap->getTileWidth();
- int tileHeight = mMap->getTileHeight();
+ const int tileWidth = mMap->getTileWidth();
+ const int tileHeight = mMap->getTileHeight();
if (!mMap->getWalk(dstX / tileWidth, dstY / tileHeight))
return;