mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix missing parameter for initialize_turn
The recent changes missed to add the required parameter also for the ui callers.
This commit is contained in:
@@ -14,6 +14,7 @@ from dcs import Point
|
||||
from game import Game
|
||||
from game.config import REWARDS
|
||||
from game.data.building_data import FORTIFICATION_BUILDINGS
|
||||
from game.sim.gameupdateevents import GameUpdateEvents
|
||||
from game.theater import ControlPoint, TheaterGroundObject
|
||||
from game.theater.theatergroundobject import (
|
||||
BuildingGroundObject,
|
||||
@@ -209,7 +210,7 @@ class QGroundObjectMenu(QDialog):
|
||||
package.target == self.ground_object
|
||||
for package in self.game.ato_for(player=False).packages
|
||||
):
|
||||
self.game.initialize_turn(for_red=True, for_blue=False)
|
||||
self.game.initialize_turn(GameUpdateEvents(), for_red=True, for_blue=False)
|
||||
|
||||
self.do_refresh_layout()
|
||||
GameUpdateSignal.get_instance().updateGame(self.game)
|
||||
|
||||
Reference in New Issue
Block a user