project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 11572 28afdaa159cb
parent 11555 b96080df19d0
child 12872 00215a7ec5f5
equal deleted inserted replaced
11571:b709768e720c 11572:28afdaa159cb
   275                     [self sendToEngine:script];
   275                     [self sendToEngine:script];
   276                 
   276                 
   277                 // seed info
   277                 // seed info
   278                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
   278                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
   279 
   279 
   280                 // missions/tranings only need the script configuration set and seed
   280                 // missions/tranings/campaign only need the script configuration set and seed
   281                 if ([HWUtils gameType] == gtMission)
   281                 TGameType currentGameType = [HWUtils gameType];
       
   282                 if (currentGameType == gtMission || currentGameType == gtCampaign)
   282                     break;
   283                     break;
   283                 
   284                 
   284                 // dimension of the map
   285                 // dimension of the map
   285                 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]];
   286                 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]];
   286                 [self sendToEngine:[gameConfig objectForKey:@"mapgen_command"]];
   287                 [self sendToEngine:[gameConfig objectForKey:@"mapgen_command"]];