mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fix(overview): correct negative radius
This commit is contained in:
parent
36aa4edb05
commit
f5851d09f5
@ -320,7 +320,7 @@ class OverviewCanvas:
|
||||
for cp in self.game.theater.controlpoints:
|
||||
coords = self._transform_point(cp.position)
|
||||
radius = 12 * math.pow(cp.importance, 1)
|
||||
radius_m = radius * cp.base.strength - 2
|
||||
radius_m = radius * max(cp.base.strength - 2, 0)
|
||||
|
||||
if cp.captured:
|
||||
color = self._player_color()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user