project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 6084 e692c0348e74
parent 6083 72c882c0fd0f
child 6246 6b2d19ed521a
equal deleted inserted replaced
6083:72c882c0fd0f 6084:e692c0348e74
   286 
   286 
   287                 // lua script (if set)
   287                 // lua script (if set)
   288                 NSString *script = [gameConfig objectForKey:@"mission_command"];
   288                 NSString *script = [gameConfig objectForKey:@"mission_command"];
   289                 if ([script length] != 0)
   289                 if ([script length] != 0)
   290                     [self sendToEngine:script];
   290                     [self sendToEngine:script];
       
   291                 // missions/tranings only need the script configuration set
       
   292                 if ([gameConfig count] == 1)
       
   293                     break;
   291 
   294 
   292                 // seed info
   295                 // seed info
   293                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
   296                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
   294 
   297 
   295                 // dimension of the map
   298                 // dimension of the map