forked from mirror/OpenTTD
(svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick
This commit is contained in:
@@ -553,3 +553,8 @@ bool Squirrel::CanSuspend()
|
||||
{
|
||||
return sq_can_suspend(this->vm);
|
||||
}
|
||||
|
||||
SQInteger Squirrel::GetOpsTillSuspend()
|
||||
{
|
||||
return this->vm->_ops_till_suspend;
|
||||
}
|
||||
|
Reference in New Issue
Block a user