Changeset - r13090:2bfefcfe19c9
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-09-21 17:24:21
smatz@openttd.org
(svn r17601) -Fix (r17592): don't mark cargo as 'accepted' when accepted amount is 0
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -432,7 +432,7 @@ static void AddAcceptedCargo_Industry(Ti
 
	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];
0 comments (0 inline, 0 general)