| 1879 | } |
| 1880 | |
| 1881 | bool Game_Map::IsAnyMovePending() { |
| 1882 | auto check = [](auto& ev) { |
| 1883 | return ev.IsMoveRouteOverwritten() && !ev.IsMoveRouteFinished(); |
| 1884 | }; |
| 1885 | const auto map_id = GetMapId(); |
| 1886 | if (check(*Main_Data::game_player)) { |
| 1887 | return true; |
| 1888 | } |
| 1889 | for (auto& vh: vehicles) { |
| 1890 | if (vh.GetMapId() == map_id && check(vh)) { |
| 1891 | return true; |
| 1892 | } |
| 1893 | } |
| 1894 | for (auto& ev: events) { |
| 1895 | if (check(ev)) { |
| 1896 | return true; |
| 1897 | } |
| 1898 | } |
| 1899 | |
| 1900 | return false; |
| 1901 | } |
| 1902 | |
| 1903 | void Game_Map::RemoveAllPendingMoves() { |
| 1904 | const auto map_id = GetMapId(); |
nothing calls this directly
no test coverage detected