Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
733
void ScriptList::KeepBottom(SQInteger count)
734
{
735
this->modifications++;
736
737
this->RemoveTop(this->Count() - count);
738
}
739
740
void ScriptList::KeepList(ScriptList *list)
741
{
Callers
nothing calls this directly
Calls
2
RemoveTop
Method · 0.95
Count
Method · 0.95
Tested by
no test coverage detected