project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 5370 a3f87be7b09a
parent 5185 7607a64e1853
child 6078 8c0cc07731e5
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Sun Jul 03 01:10:39 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Sun Jul 03 02:33:17 2011 +0200
@@ -285,6 +285,11 @@
                 NSString *saveHeader = @"TS";
                 [self dumpRawData:[saveHeader UTF8String] ofSize:[saveHeader length]];
 
+                // lua script (if set)
+                NSString *script = [gameConfig objectForKey:@"mission_command"];
+                if ([script length] != 0)
+                    [self sendToEngine:script];
+
                 // seed info
                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
 
@@ -298,11 +303,6 @@
                 if ([staticMap length] != 0)
                     [self sendToEngine:staticMap];
 
-                // lua script (if set)
-                NSString *script = [gameConfig objectForKey:@"mission_command"];
-                if ([script length] != 0)
-                    [self sendToEngine:script];
-
                 // theme info
                 [self sendToEngine:[gameConfig objectForKey:@"theme_command"]];