mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add missing argument when fixing TOTs.
Part of https://github.com/dcs-liberation/dcs_liberation/issues/2746.
This commit is contained in:
parent
4bc8bf52e7
commit
1b72598803
@ -169,10 +169,10 @@ class QTopPanel(QFrame):
|
|||||||
return packages
|
return packages
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def fix_tots(packages: List[Package]) -> None:
|
def fix_tots(packages: List[Package], now: datetime) -> None:
|
||||||
for package in packages:
|
for package in packages:
|
||||||
estimator = TotEstimator(package)
|
estimator = TotEstimator(package)
|
||||||
package.time_over_target = estimator.earliest_tot()
|
package.time_over_target = estimator.earliest_tot(now)
|
||||||
|
|
||||||
def ato_has_clients(self) -> bool:
|
def ato_has_clients(self) -> bool:
|
||||||
for package in self.game.blue.ato.packages:
|
for package in self.game.blue.ato.packages:
|
||||||
@ -235,7 +235,7 @@ class QTopPanel(QFrame):
|
|||||||
mbox.exec_()
|
mbox.exec_()
|
||||||
clicked = mbox.clickedButton()
|
clicked = mbox.clickedButton()
|
||||||
if clicked == auto:
|
if clicked == auto:
|
||||||
self.fix_tots(negative_starts)
|
self.fix_tots(negative_starts, self.sim_controller.current_time_in_sim)
|
||||||
return True
|
return True
|
||||||
elif clicked == ignore:
|
elif clicked == ignore:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user