File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -448,10 +448,11 @@ namespace dsf::mobility {
448448
449449 template <typename delay_t>
450450 requires(is_numeric_v<delay_t>)
451- std::unique_ptr<Agent> RoadDynamics<delay_t>::m_killAgent(std::unique_ptr<Agent> pAgent) {
451+ std::unique_ptr<Agent> RoadDynamics<delay_t>::m_killAgent(
452+ std::unique_ptr<Agent> pAgent) {
452453 spdlog::trace("Killing agent {}", *pAgent);
453- m_travelDTs.push_back(
454- {pAgent->distance(), static_cast<double>(this->time_step() - pAgent->spawnTime())});
454+ m_travelDTs.push_back({pAgent->distance(),
455+ static_cast<double>(this->time_step() - pAgent->spawnTime())});
455456 --m_nAgents;
456457 return std::move(pAgent);
457458 }
@@ -516,9 +517,9 @@ namespace dsf::mobility {
516517 double probability = speed * speedCurrent;
517518 if (pStreetOut->target() == pStreetCurrent->source()) {
518519 if (pNode->isRoundabout()) {
519- probability *= U_TURN_PENALTY_FACTOR; // Discourage U-TURNS
520+ probability *= U_TURN_PENALTY_FACTOR; // Discourage U-TURNS
520521 } else {
521- continue; // No U-TURNS
522+ continue; // No U-TURNS
522523 }
523524 }
524525 transitionProbabilities[pStreetOut->id()] = probability;
You can’t perform that action at this time.
0 commit comments