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

Method SelectAll

src/network/network_content.cpp:868–876  ·  view source on GitHub ↗

Select everything we can select */

Source from the content-addressed store, hash-verified

866
867/** Select everything we can select */
868void ClientNetworkContentSocketHandler::SelectAll()
869{
870 for (const auto &ci : this->infos) {
871 if (ci->state == ContentInfo::State::Unselected) {
872 ci->state = ContentInfo::State::Selected;
873 this->CheckDependencyState(*ci);
874 }
875 }
876}
877
878/** Select everything that's an update for something we've got */
879void ClientNetworkContentSocketHandler::SelectUpgrade()

Callers 1

OnClickMethod · 0.80

Calls 1

CheckDependencyStateMethod · 0.95

Tested by

no test coverage detected