project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3910 dd47efbdec46
parent 3904 22e4d74240e5
child 3911 46d7a5cf8ac6
--- a/project_files/HedgewarsMobile/Classes/GameSetup.m	Sun Sep 26 16:28:04 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/GameSetup.m	Sun Sep 26 23:48:03 2010 +0200
@@ -337,6 +337,11 @@
                 if ([staticMap length] != 0)
                     [self sendToEngine:staticMap];
 
+                // lua script (if set)
+                NSString *script = [self.gameConfig objectForKey:@"script_command"];
+                if ([script length] != 0)
+                    [self sendToEngine:script];
+                
                 // theme info
                 [self sendToEngine:[self.gameConfig objectForKey:@"theme_command"]];