src/openttd.cpp
branchnoai
changeset 9704 197cb8c6ae17
parent 9703 d2a6acdbd665
child 9718 f82a4facea8b
equal deleted inserted replaced
9703:d2a6acdbd665 9704:197cb8c6ae17
  2189 				if (st->goods[c].cargo.Count() != 0) SETBIT(st->goods[c].acceptance_pickup, GoodsEntry::PICKUP);
  2189 				if (st->goods[c].cargo.Count() != 0) SETBIT(st->goods[c].acceptance_pickup, GoodsEntry::PICKUP);
  2190 			}
  2190 			}
  2191 		}
  2191 		}
  2192 	}
  2192 	}
  2193 
  2193 
       
  2194 	if (CheckSavegameVersion(78)) {
       
  2195 		Industry *i;
       
  2196 		uint j;
       
  2197 		FOR_ALL_INDUSTRIES(i) {
       
  2198 			const IndustrySpec *indsp = GetIndustrySpec(i->type);
       
  2199 			for (j = 0; j < lengthof(i->produced_cargo); j++) {
       
  2200 				i->produced_cargo[j] = indsp->produced_cargo[j];
       
  2201 			}
       
  2202 			for (j = 0; j < lengthof(i->accepts_cargo); j++) {
       
  2203 				i->accepts_cargo[j] = indsp->accepts_cargo[j];
       
  2204 			}
       
  2205 		}
       
  2206 	}
  2194 
  2207 
  2195 	return true;
  2208 	return true;
  2196 }
  2209 }
  2197 
  2210 
  2198 /** Reload all NewGRF files during a running game. This is a cut-down
  2211 /** Reload all NewGRF files during a running game. This is a cut-down