src/newgrf.cpp
changeset 7745 2070fdfd10ba
parent 7730 4293ba29ce21
child 7746 91c0bb5613c9
equal deleted inserted replaced
7744:203522453bc7 7745:2070fdfd10ba
  1888 							IndustryType type = grf_load_byte(&buf);  //industry holding required layout
  1888 							IndustryType type = grf_load_byte(&buf);  //industry holding required layout
  1889 							byte laynbr = grf_load_byte(&buf);        //layout number to borrow
  1889 							byte laynbr = grf_load_byte(&buf);        //layout number to borrow
  1890 
  1890 
  1891 							copy_from = (IndustryTileTable*)_origin_industry_specs[type].table[laynbr];
  1891 							copy_from = (IndustryTileTable*)_origin_industry_specs[type].table[laynbr];
  1892 							for (size = 1;; size++) {
  1892 							for (size = 1;; size++) {
  1893 								if (_origin_industry_specs[type].table[laynbr + (size - 1)]->ti.x == -0x80 &&
  1893 								if (copy_from[size - 1].ti.x == -0x80 && copy_from[size - 1].ti.y) break;
  1894 										_origin_industry_specs[type].table[laynbr + (size - 1)]->ti.y == 0) break;
       
  1895 							}
  1894 							}
  1896 							break;
  1895 							break;
  1897 						}
  1896 						}
  1898 
  1897 
  1899 						itt[k].ti.y = grf_load_byte(&buf); // Or table definition finalisation
  1898 						itt[k].ti.y = grf_load_byte(&buf); // Or table definition finalisation