changeset 13100:0eab41462b99 draft

(svn r17601) -Fix (r17592): don't mark cargo as 'accepted' when accepted amount is 0
author smatz <smatz@openttd.org>
date Mon, 21 Sep 2009 17:24:21 +0000
parents 235686f53be4
children 98ee0c6f5ea5
files src/industry_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -432,7 +432,7 @@
 	const Industry *ind = Industry::GetByTile(tile);
 	for (byte i = 0; i < lengthof(itspec->accepts_cargo); i++) {
 		CargoID a = accepts_cargo[i];
-		if (a == CT_INVALID) continue; // work only with valid cargos
+		if (a == CT_INVALID || cargo_acceptance[i] == 0) continue; // work only with valid cargos
 
 		/* Add accepted cargo */
 		acceptance[a] += cargo_acceptance[i];