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

Method SelectUpgrade

src/network/network_content.cpp:879–887  ·  view source on GitHub ↗

Select everything that's an update for something we've got */

Source from the content-addressed store, hash-verified

877
878/** Select everything that's an update for something we've got */
879void ClientNetworkContentSocketHandler::SelectUpgrade()
880{
881 for (const auto &ci : this->infos) {
882 if (ci->state == ContentInfo::State::Unselected && ci->upgrade) {
883 ci->state = ContentInfo::State::Selected;
884 this->CheckDependencyState(*ci);
885 }
886 }
887}
888
889/** Unselect everything that we've not downloaded so far. */
890void ClientNetworkContentSocketHandler::UnselectAll()

Callers 2

ConContentFunction · 0.80
OnClickMethod · 0.80

Calls 1

CheckDependencyStateMethod · 0.95

Tested by

no test coverage detected