MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / destroyDisconnectedFacilities

Method destroyDisconnectedFacilities

src/Savegame/Base.cpp:1323–1330  ·  view source on GitHub ↗

* Destroys all disconnected facilities in the base. */

Source from the content-addressed store, hash-verified

1321 * Destroys all disconnected facilities in the base.
1322 */
1323void Base::destroyDisconnectedFacilities()
1324{
1325 std::list<std::vector<BaseFacility*>::iterator> disFacs = getDisconnectedFacilities(0);
1326 for (std::list<std::vector<BaseFacility*>::iterator>::reverse_iterator i = disFacs.rbegin(); i != disFacs.rend(); ++i)
1327 {
1328 destroyFacility(*i);
1329 }
1330}
1331
1332/**
1333 * Gets a sorted list of the facilities(=iterators) NOT connected to the Access Lift.

Callers 1

prepareDebriefingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected