Avoid targeting convoys if disabled

This commit is contained in:
Raffson 2022-10-15 13:56:43 +02:00
parent 81f459c571
commit ace3af8f50
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -178,6 +178,8 @@ class ObjectiveFinder:
return self._targets_by_range(airfields)
def convoys(self) -> Iterator[Convoy]:
if self.game.settings.perf_disable_convoys:
return
for front_line in self.front_lines():
yield from self.game.coalition_for(
self.is_player