summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-26 16:30:24 +0000
committeryexo <yexo@openttd.org>2009-08-26 16:30:24 +0000
commitc585e9bcd8e66c04fdac42d84483177ddb709f04 (patch)
tree8cf5d97a1bb681827fb73fa2f0efc9cd70b07a8a /bin
parent136f04eec607cd5afd348e51f925c29899d813ac (diff)
downloadopenttd-c585e9bcd8e66c04fdac42d84483177ddb709f04.tar.xz
(svn r17289) -Fix (r17214): for AIs it's STATION_INVALID, not INVALID_STATION
Diffstat (limited to 'bin')
-rw-r--r--bin/ai/compat_0.7.nut12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut
index c38234a3a..8020d57b2 100644
--- a/bin/ai/compat_0.7.nut
+++ b/bin/ai/compat_0.7.nut
@@ -39,11 +39,11 @@ AISubsidy.SourceIsTown <- function(subsidy_id)
AISubsidy.GetSource <- function(subsidy_id)
{
AILog.Warning("AISubsidy::GetSource is deprecated and will be removed soon, please use AISubsidy::GetSourceIndex instead.");
- if (!AISubsidy.IsValidSubsidy(subsidy_id)) return AIBaseStation.INVALID_STATION;
+ if (!AISubsidy.IsValidSubsidy(subsidy_id)) return AIBaseStation.STATION_INVALID;
if (AISubsidy.IsAwarded(subsidy_id)) {
- AILog.Error("AISubsidy::GetSource returned INVALID_STATION due to internal changes in the Subsidy logic.");
- return AIBaseStation.INVALID_STATION;
+ AILog.Error("AISubsidy::GetSource returned STATION_INVALID due to internal changes in the Subsidy logic.");
+ return AIBaseStation.STATION_INVALID;
}
return AISubsidy.GetSourceIndex(subsidy_id);
@@ -60,11 +60,11 @@ AISubsidy.DestinationIsTown <- function(subsidy_id)
AISubsidy.GetDestination <- function(subsidy_id)
{
AILog.Warning("AISubsidy::GetDestination is deprecated and will be removed soon, please use AISubsidy::GetDestinationIndex instead.");
- if (!AISubsidy.IsValidSubsidy(subsidy_id)) return AIBaseStation.INVALID_STATION;
+ if (!AISubsidy.IsValidSubsidy(subsidy_id)) return AIBaseStation.STATION_INVALID;
if (AISubsidy.IsAwarded(subsidy_id)) {
- AILog.Error("AISubsidy::GetDestination returned INVALID_STATION due to internal changes in the Subsidy logic.");
- return AIBaseStation.INVALID_STATION;
+ AILog.Error("AISubsidy::GetDestination returned STATION_INVALID due to internal changes in the Subsidy logic.");
+ return AIBaseStation.STATION_INVALID;
}
return AISubsidy.GetDestinationIndex(subsidy_id);