if(bclRdy){
U = UTop;
- int i = 1;
- while(U && AUN[1] > i){i++;
+
+ while(U->number != AUN[1]){
U = U->next;
}
+
- buildNum[possionX][possionY] = U->C.S->list[crBCL]-1;
+ if(U)
+ buildNum[possionX][possionY] = U->C.S->list[crBCL]-1;
U = UTop;
bclRdy = false;
@implementation ScenarioList
-(IBAction)startButton:(id)sender{
- if([scenarioListTV selectedRow] < 0) return;
- scenarioNumb = (int)[scenarioListTV selectedRow];
- storyNumb = (int)[PUBscenario indexOfSelectedItem] + 1;
+ if([scenarioListTV selectedRow] < 0) return;
startES = true;
[stringText InitStringList];
- /*
- int k = 0;
- for(int j = 0;j < [SC[storyNumb].sName count];j++){
- for (int i = 0;i < [scenarioListMA count];i++) {
- if([[scenarioListMA[scenarioNumb] valueForKey:@"name"] isEqualToString:SC[storyNumb].sName[j]]){
- goto zOMG;
-
- }
- }
- k++;
- }
-
- zOMG:
- scenarioNumb = k;
- */
+ /*
+ int k = 0;
+ for(int j = 0;j < [SC[storyNumb].sName count];j++){
+ for (int i = 0;i < [scenarioListMA count];i++) {
+ if([[scenarioListMA[scenarioNumb] valueForKey:@"name"] isEqualToString:SC[storyNumb].sName[j]]){
+ goto zOMG;
+
+ }
+ }
+ k++;
+ }
+
+ zOMG:
+
+ scenarioNumb = k;
+ */
MFselectedRow = scenarioNumb + 1;
[SLPanel close];
[NSApp stopModal];
}
}
}
+
+ [scenarioListAC setSelectionIndex:9999];
}
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="10395">
- <rect key="frame" x="465" y="1" width="16" height="480"/>
+ <rect key="frame" x="466" y="1" width="15" height="480"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>