diff src/economy.cpp @ 7186:0a85b5cc61f4 draft

(svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries.
author rubidium <rubidium@openttd.org>
date Sat, 07 Jul 2007 08:53:19 +0000 (2007-07-07)
parents f0216e74951d
children c8da88633a44
line wrap: on
line diff
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1236,7 +1236,9 @@
 	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);