Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[11923] simplify HandleMmapTestArea code a bit

  • Loading branch information...
commit a87dd6efc3b53875aaa327e3ac41a6a64d84d6d7 1 parent dfa3d9a
@SilverIce SilverIce authored
Showing with 2 additions and 9 deletions.
  1. +1 −8 src/game/Level3.cpp
  2. +1 −1  src/shared/revision_nr.h
View
9 src/game/Level3.cpp
@@ -7123,18 +7123,11 @@ bool ChatHandler::HandleMmapTestArea(char* args)
float radius = 40.0f;
ExtractFloat(&args, radius);
- CellPair pair(MaNGOS::ComputeCellPair( m_session->GetPlayer()->GetPositionX(), m_session->GetPlayer()->GetPositionY()) );
- Cell cell(pair);
- cell.SetNoCreate();
-
std::list<Creature*> creatureList;
-
MaNGOS::AnyUnitInObjectRangeCheck go_check(m_session->GetPlayer(), radius);
MaNGOS::CreatureListSearcher<MaNGOS::AnyUnitInObjectRangeCheck> go_search(creatureList, go_check);
- TypeContainerVisitor<MaNGOS::CreatureListSearcher<MaNGOS::AnyUnitInObjectRangeCheck>, GridTypeMapContainer> go_visit(go_search);
-
// Get Creatures
- cell.Visit(pair, go_visit, *(m_session->GetPlayer()->GetMap()), *(m_session->GetPlayer()), radius);
+ Cell::VisitGridObjects(m_session->GetPlayer(), go_search, radius);
if (!creatureList.empty())
{
View
2  src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "11922"
+ #define REVISION_NR "11923"
#endif // __REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.