diff options
author | rubidium <rubidium@openttd.org> | 2007-07-07 08:53:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-07 08:53:19 +0000 |
commit | 9a55c79fd11e9075b937abe0a6a077fa77a72823 (patch) | |
tree | b284545aafd09cc7fb92b71fbb6207c155507b8f /src/economy.cpp | |
parent | c86015203aa7e85cd4e5d6044896a203028ca16a (diff) | |
download | openttd-9a55c79fd11e9075b937abe0a6a077fa77a72823.tar.xz |
(svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index cd7f57a92..3eb8bdabc 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1236,7 +1236,9 @@ static void DeliverGoodsToIndustry(TileIndex xy, CargoID cargo_type, int num_pie if (best != NULL) { indspec = GetIndustrySpec(best->type); uint16 callback = indspec->callback_flags; + best->was_cargo_delivered = true; + best->last_cargo_accepted_at = _date; if (HASBIT(callback, CBM_IND_PRODUCTION_CARGO_ARRIVAL) || HASBIT(callback, CBM_IND_PRODUCTION_256_TICKS)) { best->incoming_cargo_waiting[accepted_cargo_index] = min(num_pieces + best->incoming_cargo_waiting[accepted_cargo_index], 0xFFFF); |