Make fear and fleeing respect navmesh for both clients and NPCs

This commit is contained in:
Akkadius
2018-09-03 03:06:23 -05:00
parent 8a580a7774
commit 8a28e8500d
3 changed files with 24 additions and 19 deletions
+3 -3
View File
@@ -904,10 +904,10 @@ bool Zone::Init(bool iStaticZone) {
RuleManager::Instance()->LoadRules(&database, r_name.c_str());
}
}
zone->zonemap = Map::LoadMapFile(zone->map_name);
zone->zonemap = Map::LoadMapFile(zone->map_name);
zone->watermap = WaterMap::LoadWaterMapfile(zone->map_name);
zone->pathing = IPathfinder::Load(zone->map_name);
zone->pathing = IPathfinder::Load(zone->map_name);
Log(Logs::General, Logs::Status, "Loading spawn conditions...");
if(!spawn_conditions.LoadSpawnConditions(short_name, instanceid)) {