diff -r a66d5141a3ba -r a3f87be7b09a project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m --- 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"]];