project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
changeset 6084 e692c0348e74
parent 6083 72c882c0fd0f
child 6209 074ab6ebcb3e
--- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Wed Oct 05 00:18:54 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Wed Oct 05 01:06:58 2011 +0200
@@ -215,7 +215,9 @@
     self.gameType = gtMission;
     self.savePath = nil;
 
-    NSDictionary *config = [NSDictionary dictionaryWithObject:withScript forKey:@"mission_command"];
+    NSString *missionPath = [[NSString alloc] initWithFormat:@"escript Missions/Training/%@.lua",withScript];
+    NSDictionary *config = [NSDictionary dictionaryWithObject:missionPath forKey:@"mission_command"];
+    [missionPath release];
     [self.engineProtocol spawnThread:nil withOptions:config];
     [self prepareEngineLaunch];
 }