From 8b5dc3a7faaf0e00135f30ddf96fd4d0cdac324e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 26 Nov 2023 19:02:17 +0000 Subject: Restore some trees --- application/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/main.cpp b/application/main.cpp index 5db2539..600bbe3 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -78,12 +78,12 @@ public: &train->orders, l3->ends[1], l3->length, rl->findNodeAt({-1100000, -450000, 15000})); train->currentActivity = train->orders.current()->createActivity(); - // auto foliage = std::dynamic_pointer_cast(assets.at("Tree-01-1")); - // for (float x = 900000; x < 1100000; x += 5000) { - // for (float y = 900000; y < 1100000; y += 5000) { - // world.create(foliage, Location {geoData->positionAt({{-x, -y}})}); - //} - //} + auto foliage = std::dynamic_pointer_cast(assets.at("Tree-01-1")); + for (auto x = 311000000; x < 311830000; x += 5000) { + for (auto y = 491100000; y < 491130000; y += 5000) { + world.create(foliage, Location {geoData->positionAt({{x, y}})}); + } + } } auto t_start = std::chrono::high_resolution_clock::now(); -- cgit v1.2.3