if(startOrEndFlag){
if(!seFlag){
stringInitFlag = true;
+ bahBugFixFlag = false;
[stringText InitStringList];
stringInitFlag = false;
seFlag = true;
if(!ST){
if(!startOrEndFlag){
mapInitFlag = true;
+ bahBugFixFlag = false;
[MapViewInst loadMapChip];
mapInitFlag = false;
return;
}
+ bahBugFixFlag = false;
seFlag = false;
startES = false;
EventViewDraw = true;
ST = evSTtop;
}
- while(dialogNumber > dCount) {dCount++;
- ST = ST->next;
+ while(dialogNumber > dCount) {
+ if(bahBugFixFlag) ST = ST->next;
+ dCount++;
}
+ bahBugFixFlag = true;
int textMax;
NSString *text;
storyNumb = (int)[PUBscenario indexOfSelectedItem] + 1;
startES = true;
- StringText *stringText = [[StringText alloc] init];
[stringText InitStringList];
int k = 0;
storyNumb = (int)[PUBscenario indexOfSelectedItem] + 1;
startES = true;
- StringText *stringText = [[StringText alloc] init];
[stringText InitStringList];
int k = 0;
}
-(void)InitStringList{
+ dialogLengh = 0;
+ dialogNumber = 0;
+ dialogMax = 0;
+
NSString *directoryPath;
NSArray *rangeArray6;
NSRange rangeSearch9;
NSArray *rangeArray7;
+ NSRange rangeSearch10;
bool commentSwitch = false;
rangeSearch = [str rangeOfString:@"##"];
rangeSearch2 = [str rangeOfString:@"#####"];
rangeSearch3 = [str rangeOfString:@"##" options:NSBackwardsSearch];
- rangeSearch4 = [str rangeOfString:@"####"];
rangeArray = [str componentsSeparatedByString:@"##"];
rangeArray2 = [str componentsSeparatedByString:@"%%"];
rangeSearch4 = [str rangeOfString:@"%%"];
rangeArray6 = [str componentsSeparatedByString:@"**"];
rangeSearch9 = [str rangeOfString:@"≠≠"];;
rangeArray7 = [str componentsSeparatedByString:@"≠≠"];
-
+ rangeSearch10 = [str rangeOfString:@"####"];
if (rangeSearch2.location != NSNotFound) {commentSwitch = true;
- }else if (rangeSearch.location != NSNotFound || rangeSearch4.location != NSNotFound) {commentSwitch = false;
+ }else if (rangeSearch.location != NSNotFound || rangeSearch10.location != NSNotFound) {commentSwitch = false;
if(STItop) ST->i = STItop;
STItop = NULL;
STIcnt = 0;
+ if(ST)
if(ST->S)
ST->S = SVtop;
- ST->index++;
- [self AddString:&ST :ST->index];
+ if(1){
+ ST->index++;
+ [self AddString:&ST :ST->index];
+ }
ST->next->iNameWall =ST->iNameWall;
ST->next->imgWall = [ST->imgWall retain];
ST->next->wallFadeOut = ST->wallFadeOut;
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="1720">
- <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>
<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>