project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 6084 e692c0348e74
parent 6083 72c882c0fd0f
child 6246 6b2d19ed521a
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Oct 05 00:18:54 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Oct 05 01:06:58 2011 +0200
@@ -288,6 +288,9 @@
                 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"]];