summaryrefslogtreecommitdiff
path: root/ui/builders/straight.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 13:53:27 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 13:53:27 +0000
commit749df22c85b83c86ec68ebc74829287e54498e26 (patch)
tree8e3635f80673c0b8d4505de3d363aa7742a2d430 /ui/builders/straight.cpp
parentExpose network base width and surface (diff)
downloadilt-terrain-for-networks.tar.bz2
ilt-terrain-for-networks.tar.xz
ilt-terrain-for-networks.zip
Set terrain heights when creating new network linksterrain-for-networks
Diffstat (limited to 'ui/builders/straight.cpp')
-rw-r--r--ui/builders/straight.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp
index 014eea5..b9f1831 100644
--- a/ui/builders/straight.cpp
+++ b/ui/builders/straight.cpp
@@ -52,5 +52,7 @@ BuilderStraight::click(
Link::CCollection
BuilderStraight::create(Network * network, GlobalPosition3D p1, GlobalPosition3D p2) const
{
- return network->addStraight(p1, p2);
+ const auto links = network->addStraight(p1, p2);
+ setHeightsFor(network, links);
+ return links;
}