summaryrefslogtreecommitdiff
path: root/game/network/network.impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/network/network.impl.h')
-rw-r--r--game/network/network.impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/game/network/network.impl.h b/game/network/network.impl.h
index 54a5f4b..7f7dfb3 100644
--- a/game/network/network.impl.h
+++ b/game/network/network.impl.h
@@ -162,7 +162,7 @@ NetworkOf<T, Links...>::create(const GenCurveDef & def)
template<typename T, typename... Links>
void
-NetworkOf<T, Links...>::add(const GeoData *, const Link::Ptr & link)
+NetworkOf<T, Links...>::add(GeoData * geoData, const Link::Ptr & link)
{
const auto addIf = [this](auto && lptr) {
if (lptr) {
@@ -178,4 +178,7 @@ NetworkOf<T, Links...>::add(const GeoData *, const Link::Ptr & link)
throw std::logic_error("Unsupported link type for network");
}
joinLinks(link);
+ if (geoData) {
+ geoData->setHeights(link->getBase(getBaseWidth()), GeoData::SetHeightsOpts {.surface = getBaseSurface()});
+ }
}