diff options
author | rubidium <rubidium@openttd.org> | 2007-06-07 14:38:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-07 14:38:45 +0000 |
commit | d255041365aeb6effa6acd410c7265a6315b40e5 (patch) | |
tree | bfff352edf5c9340c1e64d8f0b44e5d356786105 /src/ai/default | |
parent | f8ca8d20a2b75ec5af486a4049f096f162930149 (diff) | |
download | openttd-d255041365aeb6effa6acd410c7265a6315b40e5.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.cpp | 4 |
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; } } |