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

Method RemoveBelowValue

src/script/api/script_list.cpp:585–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void ScriptList::RemoveBelowValue(SQInteger value)
586{
587 this->modifications++;
588
589 for (ScriptListMap::iterator next_iter, iter = this->items.begin(); iter != this->items.end(); iter = next_iter) {
590 next_iter = std::next(iter);
591 if (iter->second < value) this->RemoveItem(iter->first);
592 }
593}
594
595void ScriptList::RemoveBetweenValue(SQInteger start, SQInteger end)
596{

Callers

nothing calls this directly

Calls 3

RemoveItemMethod · 0.95
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected