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

Method KeepTop

src/script/api/script_list.cpp:726–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void ScriptList::KeepTop(SQInteger count)
727{
728 this->modifications++;
729
730 this->RemoveBottom(this->Count() - count);
731}
732
733void ScriptList::KeepBottom(SQInteger count)
734{

Callers

nothing calls this directly

Calls 2

RemoveBottomMethod · 0.95
CountMethod · 0.95

Tested by

no test coverage detected