mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-15 10:39:10 +00:00
(svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick
This commit is contained in:
@@ -10,9 +10,11 @@ function Regression::TestInit()
|
||||
{
|
||||
print("");
|
||||
print("--TestInit--");
|
||||
print(" Ops: " + this.GetOpsTillSuspend());
|
||||
print(" TickTest: " + this.GetTick());
|
||||
this.Sleep(1);
|
||||
print(" TickTest: " + this.GetTick());
|
||||
print(" Ops: " + this.GetOpsTillSuspend());
|
||||
print(" SetCommandDelay: " + AIController.SetCommandDelay(1));
|
||||
print(" IsValid(vehicle.plane_speed): " + AIGameSettings.IsValid("vehicle.plane_speed"));
|
||||
print(" vehicle.plane_speed: " + AIGameSettings.GetValue("vehicle.plane_speed"));
|
||||
@@ -166,6 +168,8 @@ function Regression::TestInit()
|
||||
foreach (idx, val in list) {
|
||||
print(" " + idx);
|
||||
}
|
||||
|
||||
print(" Ops: " + this.GetOpsTillSuspend());
|
||||
}
|
||||
|
||||
function Regression::Std()
|
||||
|
Reference in New Issue
Block a user