summaryrefslogtreecommitdiff
path: root/src/game-server/gamehandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-03 19:54:16 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-03 19:54:16 +0100
commit8404033af0218ccd0221bf6ae9c0939bec86c4c9 (patch)
treec3958616add91c47291d0d366b66af980d5bcc3a /src/game-server/gamehandler.cpp
parentac0a394505c0cf1124f48e4700e214d337c2e527 (diff)
downloadmanaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.tar.gz
manaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.tar.bz2
manaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.tar.xz
manaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.zip
Got rid of the superfluous DEFAULT_TILE_HEIGHT/WIDTH.
We've got DEFAULT_TILE_LENGTH in defines.h for that. Trivial fix.
Diffstat (limited to 'src/game-server/gamehandler.cpp')
-rw-r--r--src/game-server/gamehandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp
index 7aae2e2c..a9097286 100644
--- a/src/game-server/gamehandler.cpp
+++ b/src/game-server/gamehandler.cpp
@@ -136,7 +136,7 @@ static Actor *findActorNear(Actor *p, int id)
MapComposite *map = p->getMap();
const Point &ppos = p->getPosition();
// See map.h for tiles constants
- const int pixelDist = DEFAULT_TILE_WIDTH * TILES_TO_BE_NEAR;
+ const int pixelDist = DEFAULT_TILE_LENGTH * TILES_TO_BE_NEAR;
for (ActorIterator i(map->getAroundPointIterator(ppos, pixelDist)); i; ++i)
{
Actor *a = *i;
@@ -152,7 +152,7 @@ static Character *findCharacterNear(Actor *p, int id)
MapComposite *map = p->getMap();
const Point &ppos = p->getPosition();
// See map.h for tiles constants
- const int pixelDist = DEFAULT_TILE_WIDTH * TILES_TO_BE_NEAR;
+ const int pixelDist = DEFAULT_TILE_LENGTH * TILES_TO_BE_NEAR;
for (CharacterIterator i(map->getAroundPointIterator(ppos,
pixelDist)); i; ++i)
{