Skip to content

Commit

Permalink
[10698] Compute cell area bounds for active objects in the same way l…
Browse files Browse the repository at this point in the history
…ike it done for players
  • Loading branch information
SilverIce committed Nov 8, 2010
1 parent 3ae2127 commit 9595154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10697"
#define REVISION_NR "10698"
#endif // __REVISION_NR_H__

0 comments on commit 9595154

Please sign in to comment.