From e9c4b09de5e5e814bcd5b6eb23ea85bb39f475db Mon Sep 17 00:00:00 2001 From: rftrdev <102184004+rftrdev@users.noreply.github.com> Date: Sat, 15 Oct 2022 00:05:52 -0700 Subject: [PATCH] Manually align mission prep completion to top of the hour (xx:00) --- Strategic/Rebel Command.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Strategic/Rebel Command.cpp b/Strategic/Rebel Command.cpp index 9a772a1c..21a088bd 100644 --- a/Strategic/Rebel Command.cpp +++ b/Strategic/Rebel Command.cpp @@ -2673,9 +2673,10 @@ void StartMission(INT8 index) } } - // actually start the mission - //AddStrategicEvent(EVENT_REBELCOMMAND, GetWorldTotalMin() + 60 * 24, MissionHelpers::missionParam); - AddStrategicEvent(EVENT_REBELCOMMAND, GetWorldTotalMin() + 60, MissionHelpers::missionParam); // rftr todo: DELETE ME + // queue up the mission start event. make sure we use the top of the hour because I'm lazy and we're handling the assignment here instead of Assignments.cpp + const UINT32 time = GetWorldTotalMin(); + //AddStrategicEvent(EVENT_REBELCOMMAND, time + (60 - time % 60) + 60 * 24, MissionHelpers::missionParam); + AddStrategicEvent(EVENT_REBELCOMMAND, time + (60 - time % 60) + 60, MissionHelpers::missionParam); // rftr todo: DELETE ME missionMap.insert(std::make_pair(static_cast(evt.missionId), MissionHelpers::missionParam)); rebelCommandSaveInfo.iSupplies -= GetMissionCost();