equal
deleted
inserted
replaced
181 // warn our host that it's going to be visible again |
181 // warn our host that it's going to be visible again |
182 [self.parentController viewWillAppear:YES]; |
182 [self.parentController viewWillAppear:YES]; |
183 |
183 |
184 // release the network manager and the savepath as they are not needed anymore |
184 // release the network manager and the savepath as they are not needed anymore |
185 releaseAndNil(self.engineProtocol); |
185 releaseAndNil(self.engineProtocol); |
186 if (self.gameType != gtSave) |
186 releaseAndNil(self.savePath); |
187 releaseAndNil(self.savePath); |
|
188 |
187 |
189 if ([[userDefaults objectForKey:@"music"] boolValue]) |
188 if ([[userDefaults objectForKey:@"music"] boolValue]) |
190 [HedgewarsAppDelegate playBackgroundMusic]; |
189 [HedgewarsAppDelegate playBackgroundMusic]; |
191 } |
190 } |
192 |
191 |
208 } |
207 } |
209 |
208 |
210 // set up variables for a save game |
209 // set up variables for a save game |
211 -(void) startSaveGame:(NSString *)atPath { |
210 -(void) startSaveGame:(NSString *)atPath { |
212 self.gameType = gtSave; |
211 self.gameType = gtSave; |
213 self.savePath = atPath; |
212 self.savePath = [atPath retain]; |
214 |
213 |
215 [self.engineProtocol spawnThread:self.savePath]; |
214 [self.engineProtocol spawnThread:self.savePath]; |
216 [self prepareEngineLaunch]; |
215 [self prepareEngineLaunch]; |
217 } |
216 } |
218 |
217 |