mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Add POW/MiniEvent/RebelCommand assignment check for StartMission
This commit is contained in:
@@ -2408,6 +2408,15 @@ BOOLEAN SetupMissionAgentBox(UINT16 x, UINT16 y, INT8 index)
|
|||||||
{
|
{
|
||||||
canStartMission = FALSE;
|
canStartMission = FALSE;
|
||||||
swprintf(sText, L"Agent not in loyal town");
|
swprintf(sText, L"Agent not in loyal town");
|
||||||
|
}
|
||||||
|
else if (mercs[agentIndex[index]]->bAssignment == ASSIGNMENT_POW || mercs[agentIndex[index]]->bAssignment == ASSIGNMENT_MINIEVENT || mercs[agentIndex[index]]->bAssignment == ASSIGNMENT_REBELCOMMAND)
|
||||||
|
{
|
||||||
|
canStartMission = FALSE;
|
||||||
|
swprintf(sText, L"Agent unavailable");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!canStartMission)
|
||||||
|
{
|
||||||
DrawTextToScreen(sText, x, y+295, 231, FONT10ARIAL, FONT_RED, FONT_MCOLOR_BLACK, FALSE, CENTER_JUSTIFIED);
|
DrawTextToScreen(sText, x, y+295, 231, FONT10ARIAL, FONT_RED, FONT_MCOLOR_BLACK, FALSE, CENTER_JUSTIFIED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user