diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-18 19:56:38 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-18 19:56:40 +0000 |
commit | 5cba33aedccdfa79f1c291bc1da8ff2223d5c70a (patch) | |
tree | 1aeb276c496edbd8beea180d9d032583d27cef49 /ui/builders/straight.cpp | |
parent | Add sanity checking logic to GeoData (diff) | |
download | ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.tar.bz2 ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.tar.xz ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.zip |
Give UI builders an interface that can be programmatically called
Diffstat (limited to 'ui/builders/straight.cpp')
-rw-r--r-- | ui/builders/straight.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp index 43f5ec8..014eea5 100644 --- a/ui/builders/straight.cpp +++ b/ui/builders/straight.cpp @@ -1,4 +1,5 @@ #include "straight.h" +#include "stream_support.h" #include <game/geoData.h> std::string @@ -48,8 +49,8 @@ BuilderStraight::click( } } -void +Link::CCollection BuilderStraight::create(Network * network, GlobalPosition3D p1, GlobalPosition3D p2) const { - network->addStraight(p1, p2); + return network->addStraight(p1, p2); } |