mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Don't cull objects near package targets.
https://github.com/Khopa/dcs_liberation/issues/578 Fixes https://github.com/Khopa/dcs_liberation/issues/262 (cherry picked from commit 25efdd3d4f1b8bda91c128e46e25d6098194eba3)
This commit is contained in:
parent
f0f6739cf8
commit
aaa6637435
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user