Skip to content

Commit

Permalink
Merge branch 'develop' into unit_test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPannetier authored Dec 21, 2023
2 parents e25b0e4 + c3645a9 commit a08d21c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Landscape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2281,11 +2281,13 @@ int Landscape::readCosts(string fname)
#else
if (header != "ncols" && header != "NCOLS") {
#endif
costs.close(); costs.clear();
return -1;
}
costs >> maxXcost >> header >> maxYcost >> header >> minLongCost;
costs >> header >> minLatCost >> header >> resolCost >> header >> NODATACost;
costs.close(); costs.clear();
return -1;
}
double tmpresolCost;
costs >> maxXcost >> header >> maxYcost >> header >> minLongCost;
costs >> header >> minLatCost >> header >> tmpresolCost >> header >> NODATACost;
resolCost = (int) tmpresolCost;

#if !RS_RCPP
MemoLine("Loading costs map. Please wait...");
Expand Down

0 comments on commit a08d21c

Please sign in to comment.