Skip to content

Commit

Permalink
- Hide script editor by default, might stop it popping up randomly so…
Browse files Browse the repository at this point in the history
…metimes when the map editor window isn't open

- Fix some compilation warnings
  • Loading branch information
sirjuddington committed Nov 27, 2013
1 parent d87165d commit ea9ec83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MapEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void MapEditorWindow::setupLayout()
p_inf.FloatingSize(500, 400);
p_inf.FloatingPosition(150, 150);
p_inf.MinSize(300, 300);
p_inf.Show(true);
p_inf.Show(false);
p_inf.Caption("Script Editor");
p_inf.Name("script_editor");
m_mgr->AddPane(panel_script_editor, p_inf);
Expand Down Expand Up @@ -557,7 +557,7 @@ WadArchive* MapEditorWindow::writeMap()
map_data.push_back(udmf);
}
else // TODO: doom64
return false;
return NULL;

// Check script language
bool acs = false;
Expand Down Expand Up @@ -591,6 +591,8 @@ bool MapEditorWindow::saveMap()

// Write map to temp wad
WadArchive* wad = writeMap();
if (!wad)
return false;

// Check for map archive
Archive* tempwad = NULL;
Expand Down

0 comments on commit ea9ec83

Please sign in to comment.