MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UnselectAll

Method UnselectAll

src/network/network_content.cpp:890–895  ·  view source on GitHub ↗

Unselect everything that we've not downloaded so far. */

Source from the content-addressed store, hash-verified

888
889/** Unselect everything that we've not downloaded so far. */
890void ClientNetworkContentSocketHandler::UnselectAll()
891{
892 for (const auto &ci : this->infos) {
893 if (ci->IsSelected() && ci->state != ContentInfo::State::AlreadyHere) ci->state = ContentInfo::State::Unselected;
894 }
895}
896
897/** Toggle the state of a content info and check its dependencies */
898void ClientNetworkContentSocketHandler::ToggleSelectedState(const ContentInfo &ci)

Callers 2

ConContentFunction · 0.80
OnClickMethod · 0.80

Calls 1

IsSelectedMethod · 0.80

Tested by

no test coverage detected