mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9738] Restore build on *nix
Also fix my typo in Unit::SelectRandomUnfriendlyTarget Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
0566ca0370
commit
d8736576d3
3 changed files with 6 additions and 6 deletions
|
|
@ -286,7 +286,7 @@ inline void Cell::VisitGridObjects(const WorldObject *center_obj, T &visitor, fl
|
||||||
Cell cell(p);
|
Cell cell(p);
|
||||||
if (dont_load)
|
if (dont_load)
|
||||||
cell.SetNoCreate();
|
cell.SetNoCreate();
|
||||||
typename TypeContainerVisitor<T, GridTypeMapContainer > gnotifier(visitor);
|
TypeContainerVisitor<T, GridTypeMapContainer > gnotifier(visitor);
|
||||||
cell.Visit(p, gnotifier, *center_obj->GetMap(), *center_obj, radius);
|
cell.Visit(p, gnotifier, *center_obj->GetMap(), *center_obj, radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -297,7 +297,7 @@ inline void Cell::VisitWorldObjects(const WorldObject *center_obj, T &visitor, f
|
||||||
Cell cell(p);
|
Cell cell(p);
|
||||||
if (dont_load)
|
if (dont_load)
|
||||||
cell.SetNoCreate();
|
cell.SetNoCreate();
|
||||||
typename TypeContainerVisitor<T, WorldTypeMapContainer > gnotifier(visitor);
|
TypeContainerVisitor<T, WorldTypeMapContainer > gnotifier(visitor);
|
||||||
cell.Visit(p, gnotifier, *center_obj->GetMap(), *center_obj, radius);
|
cell.Visit(p, gnotifier, *center_obj->GetMap(), *center_obj, radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -308,8 +308,8 @@ inline void Cell::VisitAllObjects(const WorldObject *center_obj, T &visitor, flo
|
||||||
Cell cell(p);
|
Cell cell(p);
|
||||||
if (dont_load)
|
if (dont_load)
|
||||||
cell.SetNoCreate();
|
cell.SetNoCreate();
|
||||||
typename TypeContainerVisitor<T, GridTypeMapContainer > gnotifier(visitor);
|
TypeContainerVisitor<T, GridTypeMapContainer > gnotifier(visitor);
|
||||||
typename TypeContainerVisitor<T, WorldTypeMapContainer > wnotifier(visitor);
|
TypeContainerVisitor<T, WorldTypeMapContainer > wnotifier(visitor);
|
||||||
cell.Visit(p, gnotifier, *center_obj->GetMap(), *center_obj, radius);
|
cell.Visit(p, gnotifier, *center_obj->GetMap(), *center_obj, radius);
|
||||||
cell.Visit(p, wnotifier, *center_obj->GetMap(), *center_obj, radius);
|
cell.Visit(p, wnotifier, *center_obj->GetMap(), *center_obj, radius);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12935,7 +12935,7 @@ Unit* Unit::SelectRandomUnfriendlyTarget(Unit* except /*= NULL*/, float radius /
|
||||||
|
|
||||||
MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, radius);
|
MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, radius);
|
||||||
MaNGOS::UnitListSearcher<MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck> searcher(this, targets, u_check);
|
MaNGOS::UnitListSearcher<MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck> searcher(this, targets, u_check);
|
||||||
Cell::VisitAllObjects(this, searcher, ATTACK_DISTANCE);
|
Cell::VisitAllObjects(this, searcher, radius);
|
||||||
|
|
||||||
// remove current target
|
// remove current target
|
||||||
if(except)
|
if(except)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9737"
|
#define REVISION_NR "9738"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue