1 Commits

Author SHA1 Message Date
1fac99f882 Release build squashed
Some checks failed
/ release (Debug, map[deps:macos-universal flag:arm64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-silicon version:14]) (push) Has been cancelled
/ release (Debug, map[deps:macos-universal flag:x86_64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-intel version:13]) (push) Has been cancelled
/ release (Debug, map[name:windows scons-script:./.github/workflows/scripts/win/scons-build.bat suffix: version:2019]) (push) Has been cancelled
/ release (Release, map[deps:macos-universal flag:arm64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-silicon version:14]) (push) Has been cancelled
/ release (Release, map[deps:macos-universal flag:x86_64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-intel version:13]) (push) Has been cancelled
/ release (Release, map[name:windows scons-script:./.github/workflows/scripts/win/scons-build.bat suffix: version:2019]) (push) Has been cancelled
2025-05-24 16:33:59 -05:00
2 changed files with 5 additions and 8 deletions

View File

@@ -22,7 +22,6 @@
#include <boost/filesystem.hpp>
#include "replay.hpp"
#include <sstream>
#include <boost/algorithm/string.hpp>
#define DONE_BUTTON_ITEM 1
@@ -374,10 +373,8 @@ std::vector<scen_header_type> build_scen_headers() {
while(iter != fs::recursive_directory_iterator()) {
fs::file_status stat = iter->status();
if(stat.type() == fs::regular_file) {
std::string extension = iter->path().extension().string();
boost::algorithm::to_lower(extension);
// Skip various data files of unpacked scenarios
if(!scen_extensions.count(extension)){
if(!scen_extensions.count(iter->path().extension().string())){
++iter;
continue;
}

View File

@@ -56,14 +56,14 @@ struct terrain_view_t {
// access to scenedit-specific global variables (which won't work unless we want to compile the common
// sources 3 times), or globals redeclared for no reason in boe.main.cpp and pc.main.cpp
struct editor_state_t {
bool drawing = false;
bool editing_town = true; // I don't think this starting value of the default editor state matters.
bool drawing;
bool editing_town;
short last_town_edited = 0;
short last_town_edited;
// Remember last view and zoom for each town
std::map<short, terrain_view_t> town_view_state;
location last_out_edited = {0, 0};
location last_out_edited;
// Remember last view and zoom for each outdoor section--
// but only for when the designer makes a discontinuous section change.
// When simply shifting over by 1 section we won't want to