Core/MMaps: Implemented a way to enable/disable certain terrain types for movement on the entire map

This commit is contained in:
Shauren authored and Ovahlord committed 2023-10-18 21:55:21 +02:00
1 parent e90a2e6ef3
commit 7b4371e25d
3 files changed
+18 -1

No files matched your search

@@ -691,6 +691,9 @@ void PathGenerator::CreateFilter()
void PathGenerator::UpdateFilter()
{
_filter.setIncludeFlags(_filter.getIncludeFlags() | _source->GetMap()->GetForceEnabledNavMeshFilterFlags());
_filter.setExcludeFlags(_filter.getExcludeFlags() | _source->GetMap()->GetForceDisabledNavMeshFilterFlags());
// allow creatures to cheat and use different movement types if they are moved
// forcefully into terrain they can't normally move in
if (const Unit* _sourceUnit = _source->ToUnit())