mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
++
This commit is contained in:
parent
2b9dc4bd0d
commit
bade742049
3 changed files with 98 additions and 103 deletions
|
@ -182,15 +182,29 @@ void SetMainStatusBarReady()
|
|||
}
|
||||
|
||||
// Should not be required anymore
|
||||
void RepairTrigger(CString& triggerdata)
|
||||
bool RepairTrigger(CString& triggerdata)
|
||||
{
|
||||
if(GetParam(triggerdata, 3).GetLength()==0) triggerdata=SetParam(triggerdata, 3, "0");
|
||||
if(GetParam(triggerdata, 4).GetLength()==0) triggerdata=SetParam(triggerdata, 4, "1");
|
||||
if(GetParam(triggerdata, 5).GetLength()==0) triggerdata=SetParam(triggerdata, 5, "1");
|
||||
if(GetParam(triggerdata, 6).GetLength()==0) triggerdata=SetParam(triggerdata, 6, "1");
|
||||
if(GetParam(triggerdata, 7).GetLength()==0) {
|
||||
triggerdata=SetParam(triggerdata, 7, "0");
|
||||
if (GetParam(triggerdata, 3).IsEmpty()) {
|
||||
triggerdata = SetParam(triggerdata, 3, "0");
|
||||
return true;
|
||||
}
|
||||
if (GetParam(triggerdata, 4).IsEmpty()) {
|
||||
triggerdata = SetParam(triggerdata, 4, "1");
|
||||
return true;
|
||||
}
|
||||
if (GetParam(triggerdata, 5).IsEmpty()) {
|
||||
triggerdata = SetParam(triggerdata, 5, "1");
|
||||
return true;
|
||||
}
|
||||
if (GetParam(triggerdata, 6).IsEmpty()) {
|
||||
triggerdata = SetParam(triggerdata, 6, "1");
|
||||
return true;
|
||||
}
|
||||
if (GetParam(triggerdata, 7).IsEmpty()) {
|
||||
triggerdata = SetParam(triggerdata, 7, "0");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// make some UI noise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue