diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2019-02-19 17:53:34 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2019-02-20 13:25:42 +0300 |
commit | da102aef071b7e98a13fad451d214c1d8765460a (patch) | |
tree | 1f161f79b9afef25e106a8c415d831b4028fd8d4 /routing | |
parent | 52dd478cda33909e032fa7b63d0b0301d7538727 (diff) |
Route::CrossMwmsPartlyProhibitedForSpeedCams() method fix.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/route.cpp | 6 | ||||
-rw-r--r-- | routing/route.hpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/routing/route.cpp b/routing/route.cpp index a72fe7aace..db8af6ff12 100644 --- a/routing/route.cpp +++ b/routing/route.cpp @@ -370,17 +370,17 @@ double Route::GetSegLenMeters(size_t segIdx) const void Route::SetMwmsPartlyProhibitedForSpeedCams(vector<platform::CountryFile> && mwms) { - m_speedCamProhibitedMwms = move(mwms); + m_speedCamPartlyProhibitedMwms = move(mwms); } bool Route::CrossMwmsPartlyProhibitedForSpeedCams() const { - return m_speedCamProhibitedMwms.empty(); + return !m_speedCamPartlyProhibitedMwms.empty(); } std::vector<platform::CountryFile> const & Route::GetMwmsPartlyProhibitedForSpeedCams() const { - return m_speedCamProhibitedMwms; + return m_speedCamPartlyProhibitedMwms; } double Route::GetETAToLastPassedPointSec() const diff --git a/routing/route.hpp b/routing/route.hpp index 3ffc3e348b..89a0aa5d31 100644 --- a/routing/route.hpp +++ b/routing/route.hpp @@ -416,6 +416,6 @@ private: uint64_t m_routeId = 0; // Mwms which are crossed by the route where speed cameras are prohibited. - std::vector<platform::CountryFile> m_speedCamProhibitedMwms; + std::vector<platform::CountryFile> m_speedCamPartlyProhibitedMwms; }; } // namespace routing |