File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 66
77static constexpr uint8_t DSM_VERSION_MAJOR = 2 ;
88static constexpr uint8_t DSM_VERSION_MINOR = 1 ;
9- static constexpr uint8_t DSM_VERSION_PATCH = 5 ;
9+ static constexpr uint8_t DSM_VERSION_PATCH = 6 ;
1010
1111#define DSM_VERSION \
1212 std::format (" {}.{}.{}" , DSM_VERSION_MAJOR, DSM_VERSION_MINOR, DSM_VERSION_PATCH)
Original file line number Diff line number Diff line change @@ -51,8 +51,14 @@ namespace dsm {
5151 if (m_streets.contains (newStreetId)) {
5252 throw std::invalid_argument (buildLog (" Street with same id already exists." ));
5353 }
54- auto newStreet = Street (newStreetId, *street);
55- m_streets.emplace (newStreetId, std::make_unique<Street>(newStreet));
54+ if (street->isSpire ()) {
55+ m_streets.emplace (
56+ newStreetId,
57+ std::make_unique<SpireStreet>(SpireStreet{newStreetId, *street}));
58+ } else {
59+ m_streets.emplace (newStreetId,
60+ std::make_unique<Street>(Street{newStreetId, *street}));
61+ }
5662 newStreetIds.emplace (streetId, newStreetId);
5763 }
5864 for (const auto & [nodeId, node] : m_nodes) {
You can’t perform that action at this time.
0 commit comments