|
@@ -328,7 +328,13 @@ function EditorSaveMission()
|
|
// now write the terrain and mission files out:
|
|
// now write the terrain and mission files out:
|
|
|
|
|
|
if(EWorldEditor.isDirty || ETerrainEditor.isMissionDirty)
|
|
if(EWorldEditor.isDirty || ETerrainEditor.isMissionDirty)
|
|
|
|
+ {
|
|
|
|
+ //Inform objects a save is happening, in case there is any special pre-save behavior a class needs to do
|
|
|
|
+ getScene(0).callOnChildren("onSaving", $Server::MissionFile);
|
|
|
|
+
|
|
getScene(0).save($Server::MissionFile);
|
|
getScene(0).save($Server::MissionFile);
|
|
|
|
+
|
|
|
|
+ }
|
|
if(ETerrainEditor.isDirty)
|
|
if(ETerrainEditor.isDirty)
|
|
{
|
|
{
|
|
// Find all of the terrain files
|
|
// Find all of the terrain files
|