mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user