mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Manually align mission prep completion to top of the hour (xx:00)
This commit is contained in:
@@ -2673,9 +2673,10 @@ void StartMission(INT8 index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// actually start the mission
|
// 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
|
||||||
//AddStrategicEvent(EVENT_REBELCOMMAND, GetWorldTotalMin() + 60 * 24, MissionHelpers::missionParam);
|
const UINT32 time = GetWorldTotalMin();
|
||||||
AddStrategicEvent(EVENT_REBELCOMMAND, GetWorldTotalMin() + 60, MissionHelpers::missionParam); // rftr todo: DELETE ME
|
//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<RebelCommandAgentMissions>(evt.missionId), MissionHelpers::missionParam));
|
missionMap.insert(std::make_pair(static_cast<RebelCommandAgentMissions>(evt.missionId), MissionHelpers::missionParam));
|
||||||
|
|
||||||
rebelCommandSaveInfo.iSupplies -= GetMissionCost();
|
rebelCommandSaveInfo.iSupplies -= GetMissionCost();
|
||||||
|
|||||||
Reference in New Issue
Block a user