OSDN Git Service

立ち絵バグ完全に治したw
[awarsiii/AwarsIV.git] / Awars III / StringText.m
index 7f9364a..9cc1af5 100644 (file)
     ST->wallFadeOut = false;
      */
     int STIcnt = 0;
+    int STcnt = 0;
     for(int i = 1;i<=[fileDataArray count];i++){
         NSString *str = [fileDataArray objectAtIndex:i-1];
         NSRange range = NSMakeRange(2, str.length - 2);
         if (rangeSearch2.location != NSNotFound) {commentSwitch = true;
           
         }else if (rangeSearch.location != NSNotFound || rangeSearch10.location != NSNotFound) {commentSwitch = false;
+            STcnt++;
+            if(STItop) ST->i = STItop;
+            STItop = NULL;
             if(!ST){
                 ST = calloc(1, sizeof(STRING));
                 ST->next = calloc(1, sizeof(STRING));
                 STtop = ST;
             }
-            if(STItop) ST->i = STItop;
+            
             STIcnt = 0;
             if(ST)
             if(ST->S)
                 
                 STRING *TXCPYINDEX = TXCPY[fileNameIndex].S;
                 
-                for(int L = 0;L < dialogMax-1;L++){
+                for(int L = 1;L < STcnt;L++){
                     TXCPY[fileNameIndex].S = TXCPY[fileNameIndex].S->next;
                 }