Skip to content

Commit

Permalink
fix comilation errors in YAML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylannl committed Nov 23, 2021
1 parent 2ba7c7d commit d02b2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ int main(int argc, const char * argv[]) {
if (n["Terrain"]) {
if (n["Terrain"]["simplification"])
map3d.set_terrain_simplification(n["Terrain"]["simplification"].as<int>());
if (n["Terrain"]["simplification_tinsimp"] != 0)
if (n["Terrain"]["simplification_tinsimp"].as<double>() != 0)
map3d.set_terrain_simplification_tinsimp(n["Terrain"]["simplification_tinsimp"].as<double>());
if (n["Terrain"]["innerbuffer"])
map3d.set_terrain_innerbuffer(n["Terrain"]["innerbuffer"].as<float>());
Expand All @@ -259,7 +259,7 @@ int main(int argc, const char * argv[]) {
if (n["Forest"]) {
if (n["Forest"]["simplification"])
map3d.set_forest_simplification(n["Forest"]["simplification"].as<int>());
if (n["Forest"]["simplification_tinsimp"] != 0)
if (n["Forest"]["simplification_tinsimp"].as<double>() != 0)
map3d.set_forest_simplification_tinsimp(n["Forest"]["simplification_tinsimp"].as<double>());
if (n["Forest"]["innerbuffer"])
map3d.set_forest_innerbuffer(n["Forest"]["innerbuffer"].as<float>());
Expand Down

0 comments on commit d02b2c3

Please sign in to comment.