Fixed crash in polygon display mode for Nevada map.

This commit is contained in:
Khopa 2020-10-12 18:53:15 +02:00
parent d95912322c
commit 5a245bf362

View File

@ -494,6 +494,8 @@ class QLiberationMap(QGraphicsView):
else:
# Polygon display mode
if self.game.theater.landmap is not None:
for inclusion_zone in self.game.theater.landmap[0]:
poly = QPolygonF([QPointF(*self._transform_point(Point(point[0], point[1]))) for point in inclusion_zone])
scene.addPolygon(poly, CONST.COLORS["grey"], CONST.COLORS["dark_grey"])