summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-08 16:53:22 +0000
committersmatz <smatz@openttd.org>2009-08-08 16:53:22 +0000
commitb43fd7266e2cc66028a7d15a1cee75bf89f6988e (patch)
tree26fb37af2c6fed35dc5fe1bdadc05679715ce917 /bin
parentab9c71f0d95da7b9eef0271484ee4b7a93c4c376 (diff)
downloadopenttd-b43fd7266e2cc66028a7d15a1cee75bf89f6988e.tar.xz
(svn r17115) -Add [NoAI]: AISubsidy::SubsidyParticipantType, AISubsidy::GetSourceType, AISubsidy::GetSourceIndex, AISubsidy::GetDestinationType, AISubsidy::GetDestinationIndex for better subsidy management
-Change [NoAI]: mark AISubsidy::SourceIsTown, AISubsidy::GetSource, AISubsidy::GetDestinationType, AISubsidy::GetDestination as deprecated
Diffstat (limited to 'bin')
-rw-r--r--bin/ai/regression/regression.nut18
-rw-r--r--bin/ai/regression/regression.txt18
2 files changed, 18 insertions, 18 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut
index 8d0abe3b3..5e1ab100a 100644
--- a/bin/ai/regression/regression.nut
+++ b/bin/ai/regression/regression.nut
@@ -1636,15 +1636,15 @@ function Regression::Vehicle()
function Regression::PrintSubsidy(subsidy_id)
{
print(" --Subsidy (" + subsidy_id + ") --");
- print(" IsValidSubsidy(): " + AISubsidy.IsValidSubsidy(subsidy_id));
- print(" IsAwarded(): " + AISubsidy.IsAwarded(subsidy_id));
- print(" GetAwardedTo(): " + AISubsidy.GetAwardedTo(subsidy_id));
- print(" GetExpireDate(): " + AISubsidy.GetExpireDate(subsidy_id));
- print(" SourceIsTown(): " + AISubsidy.SourceIsTown(subsidy_id));
- print(" GetSource(): " + AISubsidy.GetSource(subsidy_id));
- print(" DestionationIsTown(): " + AISubsidy.DestinationIsTown(subsidy_id));
- print(" GetDestionation(): " + AISubsidy.GetDestination(subsidy_id));
- print(" GetCargoType(): " + AISubsidy.GetCargoType(subsidy_id));
+ print(" IsValidSubsidy(): " + AISubsidy.IsValidSubsidy(subsidy_id));
+ print(" IsAwarded(): " + AISubsidy.IsAwarded(subsidy_id));
+ print(" GetAwardedTo(): " + AISubsidy.GetAwardedTo(subsidy_id));
+ print(" GetExpireDate(): " + AISubsidy.GetExpireDate(subsidy_id));
+ print(" GetSourceType(): " + AISubsidy.GetSourceType(subsidy_id));
+ print(" GetSourceIndex(): " + AISubsidy.GetSourceIndex(subsidy_id));
+ print(" GetDestinationType(): " + AISubsidy.GetDestinationType(subsidy_id));
+ print(" GetDestinationIndex(): " + AISubsidy.GetDestinationIndex(subsidy_id));
+ print(" GetCargoType(): " + AISubsidy.GetCargoType(subsidy_id));
}
diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt
index 1ac7b1242..31bc3a417 100644
--- a/bin/ai/regression/regression.txt
+++ b/bin/ai/regression/regression.txt
@@ -8524,15 +8524,15 @@
First Subsidy Test
--Subsidy (0) --
- IsValidSubsidy(): true
- IsAwarded(): false
- GetAwardedTo(): -1
- GetExpireDate(): 714080
- SourceIsTown(): true
- GetSource(): 15
- DestionationIsTown(): true
- GetDestionation(): 7
- GetCargoType(): 0
+ IsValidSubsidy(): true
+ IsAwarded(): false
+ GetAwardedTo(): -1
+ GetExpireDate(): 714080
+ GetSourceType(): 1
+ GetSourceIndex(): 15
+ GetDestinationType(): 1
+ GetDestinationIndex(): 7
+ GetCargoType(): 0
GetNextEvent: instance
GetEventType: 6
Unknown Event