Core/Gridmonster: Increased upper value for search radius to size of grid

This commit is contained in:
Shauren
2011-08-08 13:16:03 +02:00
parent beaca1bd34
commit 8e2a32906d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1869,8 +1869,8 @@ void Map::UpdateObjectsVisibilityFor(Player* player, Cell cell, CellPair cellpai
cell.SetNoCreate();
TypeContainerVisitor<Trinity::VisibleNotifier, WorldTypeMapContainer > world_notifier(notifier);
TypeContainerVisitor<Trinity::VisibleNotifier, GridTypeMapContainer > grid_notifier(notifier);
cell.Visit(cellpair, world_notifier, *this, *player, player->GetVisibilityRange());
cell.Visit(cellpair, grid_notifier, *this, *player, player->GetVisibilityRange());
cell.Visit(cellpair, world_notifier, *this, *player, player->GetSightRange());
cell.Visit(cellpair, grid_notifier, *this, *player, player->GetSightRange());
// send data
notifier.SendToSelf();