bugfix for cloaking device mission, new string added: 'autosave-commander-name'
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1447 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
dcd634c714
commit
8db171cf6a
@ -1003,4 +1003,8 @@
|
||||
"commodity-name platinum" = "Platinum";
|
||||
"commodity-name gem-stones" = "Gem-Stones";
|
||||
"commodity-name alien items" = "Alien Items";
|
||||
|
||||
//autosave filename
|
||||
"autosave-commander-name" = "autosave";
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ this.shipWillExitWitchspace = function ()
|
||||
if (missionVariables.cloak == null)
|
||||
{
|
||||
// ...then we count of jumps...
|
||||
if (!missionVariables.cloakcounter) cloakCounter = 1;
|
||||
if (!missionVariables.cloakcounter) missionVariables.cloakcounter = 1;
|
||||
else missionVariables.cloakcounter++;
|
||||
|
||||
// ...until we reach six or more.
|
||||
|
@ -138,9 +138,8 @@
|
||||
tmp_name = [player_name copy];
|
||||
if (save_path) tmp_path = [save_path copy];
|
||||
|
||||
NSString *savePath = [dir stringByAppendingPathComponent:@"autosave.oolite-save"];
|
||||
//NSString *saveName = [player_name stringByAppendingString:@"-autosave"]; //virtual memory exausted on load
|
||||
NSString *saveName = @"autosave";
|
||||
NSString *saveName = DESC(@"autosave-commander-name");
|
||||
NSString *savePath = [dir stringByAppendingPathComponent:[saveName stringByAppendingString:@".oolite-save"]];
|
||||
|
||||
[player_name autorelease];
|
||||
player_name = [saveName copy];
|
||||
|
Loading…
x
Reference in New Issue
Block a user