From de414a2b198863943046decd9bca919bb70e1c2c Mon Sep 17 00:00:00 2001 From: silver1ce Date: Thu, 7 Jan 2010 04:05:26 +0200 Subject: [PATCH] solved problems, that came after 6b22e47d1c --HG-- branch : trunk --- src/game/Map.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/game/Map.h b/src/game/Map.h index a195867780..698329562b 100644 --- a/src/game/Map.h +++ b/src/game/Map.h @@ -687,46 +687,43 @@ template inline void Map::VisitAll(const float &x, const float &y, float radius, NOTIFIER ¬ifier) { - float x_off, y_off; - CellPair p(Trinity::ComputeCellPair(x, y, x_off, y_off)); + CellPair p(Trinity::ComputeCellPair(x, y)); Cell cell(p); cell.data.Part.reserved = ALL_DISTRICT; cell.SetNoCreate(); CellLock cell_lock(cell, p); TypeContainerVisitor world_object_notifier(notifier); - cell_lock->Visit(cell_lock, world_object_notifier, *this, radius, x_off, y_off); + cell_lock->Visit(cell_lock, world_object_notifier, *this, radius, x, y); TypeContainerVisitor grid_object_notifier(notifier); - cell_lock->Visit(cell_lock, grid_object_notifier, *this, radius, x_off, y_off); + cell_lock->Visit(cell_lock, grid_object_notifier, *this, radius, x, y); } template inline void Map::VisitWorld(const float &x, const float &y, float radius, NOTIFIER ¬ifier) { - float x_off, y_off; - CellPair p(Trinity::ComputeCellPair(x, y, x_off, y_off)); + CellPair p(Trinity::ComputeCellPair(x, y)); Cell cell(p); cell.data.Part.reserved = ALL_DISTRICT; cell.SetNoCreate(); CellLock cell_lock(cell, p); TypeContainerVisitor world_object_notifier(notifier); - cell_lock->Visit(cell_lock, world_object_notifier, *this, radius, x_off, y_off); + cell_lock->Visit(cell_lock, world_object_notifier, *this, radius, x, y); } template inline void Map::VisitGrid(const float &x, const float &y, float radius, NOTIFIER ¬ifier) { - float x_off, y_off; - CellPair p(Trinity::ComputeCellPair(x, y, x_off, y_off)); + CellPair p(Trinity::ComputeCellPair(x, y)); Cell cell(p); cell.data.Part.reserved = ALL_DISTRICT; cell.SetNoCreate(); CellLock cell_lock(cell, p); TypeContainerVisitor grid_object_notifier(notifier); - cell_lock->Visit(cell_lock, grid_object_notifier, *this, radius, x_off, y_off); + cell_lock->Visit(cell_lock, grid_object_notifier, *this, radius, x, y); } #endif