Change: Invalidate ship path caches if pathfinder choice or forbid-90-degree turns are changed.

This commit is contained in:
Peter Nelson
2019-01-19 20:59:27 +00:00
committed by PeterN
parent 81330b8d6e
commit 4daaec1a94
2 changed files with 12 additions and 0 deletions

View File

@@ -1312,6 +1312,15 @@ static bool MaxVehiclesChanged(int32 p1)
return true;
}
static bool InvalidateShipPathCache(int32 p1)
{
Ship *s;
FOR_ALL_SHIPS(s) {
s->path.clear();
}
return true;
}
#ifdef ENABLE_NETWORK