fix(overview): correct negative radius

This commit is contained in:
Wrycu 2019-06-22 14:15:24 -07:00
parent 36aa4edb05
commit f5851d09f5
No known key found for this signature in database
GPG Key ID: BDB10F9DDF6AF8D0

View File

@ -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()