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

Method RemoveBetweenValue

src/script/api/script_list.cpp:595–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void ScriptList::RemoveBetweenValue(SQInteger start, SQInteger end)
596{
597 this->modifications++;
598
599 for (ScriptListMap::iterator next_iter, iter = this->items.begin(); iter != this->items.end(); iter = next_iter) {
600 next_iter = std::next(iter);
601 if (iter->second > start && iter->second < end) this->RemoveItem(iter->first);
602 }
603}
604
605void ScriptList::RemoveValue(SQInteger value)
606{

Callers

nothing calls this directly

Calls 3

RemoveItemMethod · 0.95
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected