summaryrefslogtreecommitdiff
path: root/src/ai/default
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-07 14:38:45 +0000
committerrubidium <rubidium@openttd.org>2007-06-07 14:38:45 +0000
commit8a74b2ebe179500f1e95647cdf4a2e740ea1df23 (patch)
treebfff352edf5c9340c1e64d8f0b44e5d356786105 /src/ai/default
parentb73cd3c12d8dd7b44b4ed8e472f978c0b3510289 (diff)
downloadopenttd-8a74b2ebe179500f1e95647cdf4a2e740ea1df23.tar.xz
(svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month).
Diffstat (limited to 'src/ai/default')
-rw-r--r--src/ai/default/default.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index c865729ff..d1435b6a8 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -672,8 +672,8 @@ static bool AiCheckIfRouteIsGood(Player *p, FoundRoute *fr, byte bitmask)
const Industry* i = (const Industry*)fr->from;
const IndustrySpec *indsp = GetIndustrySpec(i->type);
- if (i->pct_transported[fr->cargo != indsp->produced_cargo[0]] > 0x99 ||
- i->total_production[fr->cargo != indsp->produced_cargo[0]] == 0) {
+ if (i->last_month_pct_transported[fr->cargo != indsp->produced_cargo[0]] > 0x99 ||
+ i->last_month_production[fr->cargo != indsp->produced_cargo[0]] == 0) {
return false;
}
}