Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
1fac99f882 |
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user