diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 23:20:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 23:20:14 +0000 |
commit | 65d0d19b1616e5867afdf9d9f1c68972d2c3f2b0 (patch) | |
tree | 75d5607cc3393395003137b92c580a4bf8dae3f2 /bin/ai/regression/regression.nut | |
parent | 02913f40b0ab1a7771e96e4c6af4ef15b6953cc7 (diff) | |
download | openttd-65d0d19b1616e5867afdf9d9f1c68972d2c3f2b0.tar.xz |
(svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick
Diffstat (limited to 'bin/ai/regression/regression.nut')
-rw-r--r-- | bin/ai/regression/regression.nut | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut index 05243346a..341c5d4ce 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -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() |