MCPcopy Create free account
hub / github.com/assaultcube/AC / Clear

Method Clear

source/src/bot/bot_waypoint.cpp:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void 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
80TLinkedList<node_s *>::node_s *testx;

Callers 2

wpclearFunction · 0.45
AStarMethod · 0.45

Calls 4

DeleteAllNodesMethod · 0.80
DelWaypointMethod · 0.80
EmptyMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected