Clean up some uses of Point to prep for update.

This commit is contained in:
Dan Albert
2022-02-21 18:12:59 -08:00
parent bafc9dc65e
commit df7be8603b
6 changed files with 22 additions and 81 deletions

View File

@@ -26,7 +26,6 @@ from .ato.flighttype import FlightType
from .campaignloader import CampaignAirWingConfig
from .coalition import Coalition
from .db.gamedb import GameDb
from .factions.faction import Faction
from .infos.information import Information
from .profiling import logged_duration
from .settings import Settings
@@ -472,11 +471,6 @@ class Game:
continue
zones.append(package.target.position)
# Else 0,0, since we need a default value
# (in this case this means the whole map is owned by the same player, so it is not an issue)
if len(zones) == 0:
zones.append(Point(0, 0))
self.__culling_zones = zones
def add_destroyed_units(self, data: dict[str, Union[float, str]]) -> None: