Ver código fonte

We don't want to be generating autosaves of the default and template levels as that can just cause weirdness.

JeffR 2 meses atrás
pai
commit
8b7629d679

+ 4 - 0
Templates/BaseGame/game/tools/worldEditor/scripts/menuHandlers.ed.tscript

@@ -455,6 +455,10 @@ function EditorAutoSaveMission()
    
    AssetBackupListArray.empty();
    
+   %scenePath = makeFullPath(getRootScene().getFileName());
+   if(startsWith(%scenePath, "tools/levels/")
+      return false;
+   
    //Next, we figure out what all we're planning to save
    %terrainObjects = getRootScene().getObjectsByClass("TerrainBlock", false);
    for(%i=0; %i < getWordCount(%terrainObjects); %i++)