| 59 | } |
| 60 | |
| 61 | void CWaypointClass::Clear() |
| 62 | { |
| 63 | for(int i=0;i<MAX_MAP_GRIDS;i++) |
| 64 | { |
| 65 | for(int j=0;j<MAX_MAP_GRIDS;j++) |
| 66 | { |
| 67 | while(!m_Waypoints[i][j].Empty()) |
| 68 | { |
| 69 | node_s *p = m_Waypoints[i][j].Pop(); |
| 70 | p->ConnectedWPs.DeleteAllNodes(); |
| 71 | p->ConnectedWPsWithMe.DeleteAllNodes(); |
| 72 | BotManager.DelWaypoint(p); |
| 73 | delete p; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | //fixme |
| 80 | TLinkedList<node_s *>::node_s *testx; |
no test coverage detected