diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-08-08 13:16:03 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-08-08 13:16:03 +0200 |
| commit | 8e2a32906d9988e040d2835ae40125c5e6b5d9b7 (patch) | |
| tree | 8ed4ad6760f17d1d27d52661d557df3b56a3ad1a /src | |
| parent | beaca1bd348a4702ecfe91c5ae8cb7edf68cb5b4 (diff) | |
Core/Gridmonster: Increased upper value for search radius to size of grid
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Grids/Cells/CellImpl.h | 4 | ||||
| -rwxr-xr-x | src/server/game/Maps/Map.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Grids/Cells/CellImpl.h b/src/server/game/Grids/Cells/CellImpl.h index 069362466a8..b9e734ab7ed 100755 --- a/src/server/game/Grids/Cells/CellImpl.h +++ b/src/server/game/Grids/Cells/CellImpl.h @@ -183,8 +183,8 @@ Cell::Visit(const CellPair& standing_cell, TypeContainerVisitor<T, CONTAINER> &v return; } //lets limit the upper value for search radius - if (radius > 333.0f) - radius = 333.0f; + if (radius > SIZE_OF_GRIDS) + radius = SIZE_OF_GRIDS; //lets calculate object coord offsets from cell borders. CellArea area = Cell::CalculateCellArea(x_off, y_off, radius); diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 4cde2913160..0cb9b318b54 100755 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -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(); |
