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

Method KeepBottom

src/script/api/script_list.cpp:733–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733void ScriptList::KeepBottom(SQInteger count)
734{
735 this->modifications++;
736
737 this->RemoveTop(this->Count() - count);
738}
739
740void ScriptList::KeepList(ScriptList *list)
741{

Callers

nothing calls this directly

Calls 2

RemoveTopMethod · 0.95
CountMethod · 0.95

Tested by

no test coverage detected