Clean up front line code.

The routes do not need be be recreated each time we create a
`FrontLine`. The front lines follow the convoy routes, which are static.
Add the convoy route data to the `ControlPoint` the way we do for
shipping lanes and have `FrontLine` load the data from there.
This commit is contained in:
Dan Albert
2021-05-08 16:46:02 -07:00
parent 67289bbba2
commit e721a234e1
7 changed files with 217 additions and 275 deletions

View File

@@ -915,9 +915,9 @@ class QLiberationMap(QGraphicsView):
convoys.append(convoy)
if a.captured:
frontline = FrontLine(a, b, self.game.theater)
frontline = FrontLine(a, b)
else:
frontline = FrontLine(b, a, self.game.theater)
frontline = FrontLine(b, a)
if a.front_is_active(b):
if DisplayOptions.actual_frontline_pos:
self.draw_actual_frontline(scene, frontline, convoys)