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