From 25efdd3d4f1b8bda91c128e46e25d6098194eba3 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 14 Dec 2020 23:47:31 -0800 Subject: [PATCH] Don't cull objects near package targets. https://github.com/Khopa/dcs_liberation/issues/578 Fixes https://github.com/Khopa/dcs_liberation/issues/262 --- game/game.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game/game.py b/game/game.py index 286b8dc3..c15d3575 100644 --- a/game/game.py +++ b/game/game.py @@ -391,6 +391,11 @@ class Game: if cpoint is not None: points.append(cpoint) + for package in self.blue_ato.packages: + points.append(package.target.position) + for package in self.red_ato.packages: + points.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(points) == 0: