From f5851d09f504f5eb2f183153e1ae01f9ed916430 Mon Sep 17 00:00:00 2001 From: Wrycu Date: Sat, 22 Jun 2019 14:15:24 -0700 Subject: [PATCH] fix(overview): correct negative radius --- ui/overviewcanvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/overviewcanvas.py b/ui/overviewcanvas.py index 0bf3d455..39d677d4 100644 --- a/ui/overviewcanvas.py +++ b/ui/overviewcanvas.py @@ -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()