mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
[core] Replace SmallMap
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
committed by
Konstantin Pastbin
parent
969e1ef2da
commit
882dccb87d
@@ -421,9 +421,7 @@ public:
|
||||
auto const s = m_avgSpeeds[ind][type].m_speed;
|
||||
if (s > 0)
|
||||
return s;
|
||||
auto const * p = kHighwayBasedSpeeds.Find(type);
|
||||
CHECK(p, ());
|
||||
return p->GetSpeed(inCity).m_weight;
|
||||
return kHighwayBasedSpeeds.at(type).GetSpeed(inCity).m_weight;
|
||||
};
|
||||
|
||||
// These speeds: Primary, Secondary, Tertiary, Residential have the biggest routing quality impact.
|
||||
|
||||
Reference in New Issue
Block a user