mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Fix bad screen message
Stop time compression when notifying player about missions
This commit is contained in:
@@ -4959,6 +4959,7 @@ void HandleStrategicEvent(const UINT32 eventParam)
|
|||||||
swprintf(msgBoxText, szRebelCommandText[RCT_MISSION_FAILURE], szRebelCommandAgentMissionsText[evt1.missionId * 2]);
|
swprintf(msgBoxText, szRebelCommandText[RCT_MISSION_FAILURE], szRebelCommandAgentMissionsText[evt1.missionId * 2]);
|
||||||
swprintf(screenMsgText, szRebelCommandText[RCT_MISSION_FAILURE], szRebelCommandAgentMissionsText[evt1.missionId * 2]);
|
swprintf(screenMsgText, szRebelCommandText[RCT_MISSION_FAILURE], szRebelCommandAgentMissionsText[evt1.missionId * 2]);
|
||||||
ScreenMsg(FONT_MCOLOR_RED, MSG_INTERFACE, screenMsgText);
|
ScreenMsg(FONT_MCOLOR_RED, MSG_INTERFACE, screenMsgText);
|
||||||
|
StopTimeCompression();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!evt1.sentGenericRebelAgent && foundMerc)
|
if (!evt1.sentGenericRebelAgent && foundMerc)
|
||||||
@@ -4983,8 +4984,9 @@ void HandleStrategicEvent(const UINT32 eventParam)
|
|||||||
// mission duration is over. deactivate the mission
|
// mission duration is over. deactivate the mission
|
||||||
missionMap.erase(static_cast<RebelCommandAgentMissions>(evt2.missionId));
|
missionMap.erase(static_cast<RebelCommandAgentMissions>(evt2.missionId));
|
||||||
swprintf(msgBoxText, szRebelCommandText[RCT_MISSION_EXPIRED], szRebelCommandAgentMissionsText[evt2.missionId * 2]);
|
swprintf(msgBoxText, szRebelCommandText[RCT_MISSION_EXPIRED], szRebelCommandAgentMissionsText[evt2.missionId * 2]);
|
||||||
swprintf(screenMsgText, szRebelCommandText[RCT_MISSION_EXPIRED], szRebelCommandAgentMissionsText[evt1.missionId * 2]);
|
swprintf(screenMsgText, szRebelCommandText[RCT_MISSION_EXPIRED], szRebelCommandAgentMissionsText[evt2.missionId * 2]);
|
||||||
ScreenMsg(FONT_MCOLOR_RED, MSG_INTERFACE, screenMsgText);
|
ScreenMsg(FONT_MCOLOR_RED, MSG_INTERFACE, screenMsgText);
|
||||||
|
StopTimeCompression();
|
||||||
}
|
}
|
||||||
|
|
||||||
DoMessageBox(MSG_BOX_BASIC_STYLE, msgBoxText, guiCurrentScreen, MSG_BOX_FLAG_OK, NULL, NULL);
|
DoMessageBox(MSG_BOX_BASIC_STYLE, msgBoxText, guiCurrentScreen, MSG_BOX_FLAG_OK, NULL, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user