equal
deleted
inserted
replaced
271 |
271 |
272 // lua script (if set) |
272 // lua script (if set) |
273 NSString *script = [gameConfig objectForKey:@"mission_command"]; |
273 NSString *script = [gameConfig objectForKey:@"mission_command"]; |
274 if ([script length] != 0) |
274 if ([script length] != 0) |
275 [self sendToEngine:script]; |
275 [self sendToEngine:script]; |
276 // missions/tranings only need the script configuration set |
276 |
277 if ([gameConfig count] == 1) |
|
278 break; |
|
279 |
|
280 // seed info |
277 // seed info |
281 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]]; |
278 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]]; |
282 |
279 |
|
280 // missions/tranings only need the script configuration set and seed |
|
281 if ([HWUtils gameType] == gtMission) |
|
282 break; |
|
283 |
283 // dimension of the map |
284 // dimension of the map |
284 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]]; |
285 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]]; |
285 [self sendToEngine:[gameConfig objectForKey:@"mapgen_command"]]; |
286 [self sendToEngine:[gameConfig objectForKey:@"mapgen_command"]]; |
286 [self sendToEngine:[gameConfig objectForKey:@"mazesize_command"]]; |
287 [self sendToEngine:[gameConfig objectForKey:@"mazesize_command"]]; |
287 |
288 |