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/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') 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; -- cgit v1.2.3-70-g09d2