summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-26 19:02:17 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-26 19:02:17 +0000
commit8b5dc3a7faaf0e00135f30ddf96fd4d0cdac324e (patch)
tree89adf9c498b8e2ed138b7a664a60d72d1c1af84e /application
parentFix terrain texture tiling (diff)
downloadilt-8b5dc3a7faaf0e00135f30ddf96fd4d0cdac324e.tar.bz2
ilt-8b5dc3a7faaf0e00135f30ddf96fd4d0cdac324e.tar.xz
ilt-8b5dc3a7faaf0e00135f30ddf96fd4d0cdac324e.zip
Restore some trees
Diffstat (limited to 'application')
-rw-r--r--application/main.cpp12
1 files 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<Foliage>(assets.at("Tree-01-1"));
- // for (float x = 900000; x < 1100000; x += 5000) {
- // for (float y = 900000; y < 1100000; y += 5000) {
- // world.create<Plant>(foliage, Location {geoData->positionAt({{-x, -y}})});
- //}
- //}
+ auto foliage = std::dynamic_pointer_cast<Foliage>(assets.at("Tree-01-1"));
+ for (auto x = 311000000; x < 311830000; x += 5000) {
+ for (auto y = 491100000; y < 491130000; y += 5000) {
+ world.create<Plant>(foliage, Location {geoData->positionAt({{x, y}})});
+ }
+ }
}
auto t_start = std::chrono::high_resolution_clock::now();