mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 09:01:41 -04:00
formatting .
This commit is contained in:
parent
f7e3d96881
commit
6364362bd3
1 changed files with 5 additions and 3 deletions
|
@ -99,7 +99,9 @@ void CTriggerEventsDlg::TranslateUI()
|
|||
int GetEventParamStart(const CString& EventData, int param)
|
||||
{
|
||||
int count = atoi(GetParam(EventData, 0));
|
||||
if (param >= count) return -1;
|
||||
if (param >= count) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int pos = 1;
|
||||
int i;
|
||||
|
@ -108,8 +110,8 @@ int GetEventParamStart(const CString& EventData, int param)
|
|||
int needs = atoi(GetParam(EventData, pos));
|
||||
|
||||
pos += 2; // jump to next usual eventtype
|
||||
if (needs == 2) // if needs of last eventtype is 2, we need to add 1
|
||||
{
|
||||
// if needs of last eventtype is 2, we need to add 1
|
||||
if (needs == 2) {
|
||||
pos += 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue