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

Method Update

src/station_gui.cpp:1134–1138  ·  view source on GitHub ↗

* Update the count for this entry and propagate the change to the parent entry * if there is one. * @param count the amount to be added to this entry */

Source from the content-addressed store, hash-verified

1132 * @param count the amount to be added to this entry
1133 */
1134void CargoDataEntry::Update(uint count)
1135{
1136 this->count += count;
1137 if (this->parent != nullptr) this->parent->Update(count);
1138}
1139
1140/**
1141 * Increment

Callers 3

ShowCargoMethod · 0.45
RecalcDestinationsMethod · 0.45
EstimateDestinationsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected