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

Method RemoveAboveValue

src/script/api/script_list.cpp:575–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void ScriptList::RemoveAboveValue(SQInteger value)
576{
577 this->modifications++;
578
579 for (ScriptListMap::iterator next_iter, iter = this->items.begin(); iter != this->items.end(); iter = next_iter) {
580 next_iter = std::next(iter);
581 if (iter->second > value) this->RemoveItem(iter->first);
582 }
583}
584
585void ScriptList::RemoveBelowValue(SQInteger value)
586{

Callers

nothing calls this directly

Calls 3

RemoveItemMethod · 0.95
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected