| 49 | #endif |
| 50 | |
| 51 | IC void CPatrolPoint::correct_position(const CLevelGraph* level_graph, const CGameLevelCrossTable* cross, const CGameGraph* game_graph) |
| 52 | { |
| 53 | if (!level_graph || !level_graph->valid_vertex_position(position()) || !level_graph->valid_vertex_id(m_level_vertex_id)) |
| 54 | return; |
| 55 | |
| 56 | if (!level_graph->inside(level_vertex_id(level_graph, cross, game_graph), position())) |
| 57 | m_position = level_graph->vertex_position(level_vertex_id(level_graph, cross, game_graph)); |
| 58 | |
| 59 | m_game_vertex_id = cross->vertex(level_vertex_id(level_graph, cross, game_graph)).game_vertex_id(); |
| 60 | } |
| 61 | |
| 62 | CPatrolPoint::CPatrolPoint(const CPatrolPath* path, const Fvector& position, u32 level_vertex_id, u32 flags, shared_str name) |
| 63 | { |
nothing calls this directly
no test coverage detected