@@ -30,6 +30,14 @@ namespace RTE {
3030
3131 ConcreteClassInfo (AreaEditor, EditorActivity, 0 );
3232
33+ AreaEditor::AreaEditor () {
34+ Clear ();
35+ }
36+
37+ AreaEditor::~AreaEditor () {
38+ Destroy (true );
39+ }
40+
3341 void AreaEditor::Clear () {
3442 m_pEditorGUI = 0 ;
3543 m_pNewAreaName = 0 ;
@@ -211,24 +219,24 @@ namespace RTE {
211219 m_NeedSave = m_pEditorGUI->EditMade () || m_NeedSave;
212220
213221 // Get any mode change commands that the user gave the Editor GUI
214- if (m_pEditorGUI->GetActivatedPieSlice () == PieSlice::SliceType ::EditorNew && m_EditorMode != NEWDIALOG) {
222+ if (m_pEditorGUI->GetActivatedPieSlice () == PieSliceType ::EditorNew && m_EditorMode != NEWDIALOG) {
215223 m_pEditorGUI->SetEditorGUIMode (AreaEditorGUI::INACTIVE);
216224 m_EditorMode = EditorActivity::NEWDIALOG;
217225 m_ModeChange = true ;
218226 // This is ahack so we don't get a 'save changes dialog' when we jsut want to create a new area.
219227 // Will turn on dirtyness immediately as New button is pressed below
220228 m_NeedSave = false ;
221- } else if (m_pEditorGUI->GetActivatedPieSlice () == PieSlice::SliceType ::EditorLoad && m_EditorMode != LOADDIALOG) {
229+ } else if (m_pEditorGUI->GetActivatedPieSlice () == PieSliceType ::EditorLoad && m_EditorMode != LOADDIALOG) {
222230 m_pEditorGUI->SetEditorGUIMode (AreaEditorGUI::INACTIVE);
223231 m_EditorMode = EditorActivity::LOADDIALOG;
224232 m_ModeChange = true ;
225- } else if (m_pEditorGUI->GetActivatedPieSlice () == PieSlice::SliceType ::EditorSave && m_EditorMode != SAVEDIALOG) {
233+ } else if (m_pEditorGUI->GetActivatedPieSlice () == PieSliceType ::EditorSave && m_EditorMode != SAVEDIALOG) {
226234 m_pEditorGUI->SetEditorGUIMode (AreaEditorGUI::INACTIVE);
227235 m_EditorMode = EditorActivity::SAVEDIALOG;
228236 m_ModeChange = true ;
229237 }
230238 // Test the scene by starting a Skirmish Defense with it, after saving
231- else if (m_pEditorGUI->GetActivatedPieSlice () == PieSlice::SliceType ::EditorDone || m_EditorMode == TESTINGOBJECT) {
239+ else if (m_pEditorGUI->GetActivatedPieSlice () == PieSliceType ::EditorDone || m_EditorMode == TESTINGOBJECT) {
232240 m_pEditorGUI->SetEditorGUIMode (AreaEditorGUI::INACTIVE);
233241
234242 if (m_NeedSave) {
0 commit comments