diff --git a/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp b/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp index f8c41797..64ba734b 100644 --- a/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp +++ b/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp @@ -60,9 +60,9 @@ HighwaySystem::HighwaySystem( if (!file) el.add_error("Could not open "+path+"/"+systemname+".csv"); else { getline(file, line); // ignore header line while(getline(file, line)) - { // trim DOS newlines & trailing whitespace + { if (line.empty()) continue; + // trim DOS newlines & trailing whitespace while ( strchr("\r\t ", line.back()) ) line.pop_back(); - if (line.empty()) continue; Route* r = new Route(line, this, el, region_hash); // deleted on termination of program if (r->root.size()) route_list.push_back(r); @@ -78,9 +78,9 @@ HighwaySystem::HighwaySystem( if (!file) el.add_error("Could not open "+path+"/"+systemname+"_con.csv"); else { getline(file, line); // ignore header line while(getline(file, line)) - { // trim DOS newlines & trailing whitespace + { if (line.empty()) continue; + // trim DOS newlines & trailing whitespace while ( strchr("\r\t ", line.back()) ) line.pop_back(); - if (line.empty()) continue; con_route_list.push_back(new ConnectedRoute(line, this, el)); // deleted on termination of program } diff --git a/siteupdate/cplusplus/localupdate.sh b/siteupdate/cplusplus/localupdate.sh index f3774cd8..a352c0b9 100755 --- a/siteupdate/cplusplus/localupdate.sh +++ b/siteupdate/cplusplus/localupdate.sh @@ -9,7 +9,7 @@ install=1 pull=1 execdir=`pwd` tmbase=$HOME/travelmapping -tmwebbase=/home/www/tm +tmwebbase=/fast/www/tm tmpdir=/home/tmp/tm datestr=`date '+%Y-%m-%d@%H:%M:%S'` logdir=logs