project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 11555 b96080df19d0
parent 11241 e7bae160b73b
child 11572 28afdaa159cb
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Feb 17 23:27:13 2016 +0100
+++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Fri Feb 19 00:07:59 2016 +0100
@@ -273,13 +273,14 @@
                 NSString *script = [gameConfig objectForKey:@"mission_command"];
                 if ([script length] != 0)
                     [self sendToEngine:script];
-                // missions/tranings only need the script configuration set
-                if ([gameConfig count] == 1)
-                    break;
-
+                
                 // seed info
                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
 
+                // missions/tranings only need the script configuration set and seed
+                if ([HWUtils gameType] == gtMission)
+                    break;
+                
                 // dimension of the map
                 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]];
                 [self sendToEngine:[gameConfig objectForKey:@"mapgen_command"]];