[10698] Compute cell area bounds for active objects in the same way like it done for players

This commit is contained in:
SilverIce 2010-11-08 02:23:43 +02:00
parent b4a48f976e
commit b6695d5279
2 changed files with 3 additions and 3 deletions

View file

@ -606,8 +606,8 @@ void Map::Update(uint32 time_, uint32 diff)
// the overloaded operators handle range checking
// so ther's no need for range checking inside the loop
CellPair begin_cell(standing_cell), end_cell(standing_cell);
begin_cell << 1; begin_cell -= 1; // upper left
end_cell >> 1; end_cell += 1; // lower right
CellArea area = Cell::CalculateCellArea(obj->GetPositionX(), obj->GetPositionY(), GetVisibilityDistance());
area.ResizeBorders(begin_cell, end_cell);
for(uint32 x = begin_cell.x_coord; x <= end_cell.x_coord; ++x)
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10697"
#define REVISION_NR "10698"
#endif // __REVISION_NR_H__