From 07b93167f06eb07e74c7bbccdd16011e3757c603 Mon Sep 17 00:00:00 2001 From: Khopa Date: Sun, 6 Jun 2021 17:49:56 +0200 Subject: [PATCH] Improved implementation. --- game/theater/controlpoint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/theater/controlpoint.py b/game/theater/controlpoint.py index d1ab1827..1b46e300 100644 --- a/game/theater/controlpoint.py +++ b/game/theater/controlpoint.py @@ -23,7 +23,6 @@ from typing import ( Tuple, ) -from dcs import helicopters from dcs.mapping import Point from dcs.ships import ( CVN_74_John_C__Stennis, @@ -1139,7 +1138,7 @@ class Fob(ControlPoint): return len(self.helipads) def can_operate(self, aircraft: FlyingType) -> bool: - if aircraft in helicopters.helicopter_map.values(): + if aircraft.helicopter: return True else: return False