| 2173 | } |
| 2174 | |
| 2175 | static bool FootpathIsLegacyPathEntryOkay(ObjectEntryIndex index) |
| 2176 | { |
| 2177 | bool showEditorPaths = (gLegacyScene == LegacyScene::scenarioEditor || getGameState().cheats.sandboxMode); |
| 2178 | auto& objManager = GetContext()->GetObjectManager(); |
| 2179 | auto footpathObj = objManager.GetLoadedObject<FootpathObject>(index); |
| 2180 | if (footpathObj != nullptr) |
| 2181 | { |
| 2182 | auto pathEntry = reinterpret_cast<FootpathEntry*>(footpathObj->GetLegacyData()); |
| 2183 | return showEditorPaths || !(pathEntry->flags & FOOTPATH_ENTRY_FLAG_SHOW_ONLY_IN_SCENARIO_EDITOR); |
| 2184 | } |
| 2185 | return false; |
| 2186 | } |
| 2187 | |
| 2188 | static ObjectEntryIndex FootpathGetDefaultLegacyPath() |
| 2189 | { |
no test coverage detected