src/newgrf.cpp
changeset 8126 ff006fa6d1ab
parent 8116 1e04799d8544
child 8127 0cbf1d4a5f6d
equal deleted inserted replaced
8125:df9b65517e19 8126:ff006fa6d1ab
  1936 								/* Declared as been valid, can be used */
  1936 								/* Declared as been valid, can be used */
  1937 								itt[k].gfx = tempid;
  1937 								itt[k].gfx = tempid;
  1938 								size = k + 1;
  1938 								size = k + 1;
  1939 								copy_from = itt;
  1939 								copy_from = itt;
  1940 							}
  1940 							}
  1941 						}
  1941 						} else if (itt[k].gfx == 0xFF) {
       
  1942 							itt[k].ti.x = (int8)GB(itt[k].ti.x, 0, 8);
       
  1943 							itt[k].ti.y = (int8)GB(itt[k].ti.y, 0, 8);
       
  1944  						}
  1942 					}
  1945 					}
  1943 					tile_table[j] = CallocT<IndustryTileTable>(size);
  1946 					tile_table[j] = CallocT<IndustryTileTable>(size);
  1944 					memcpy(tile_table[j], copy_from, sizeof(*copy_from) * size);
  1947 					memcpy(tile_table[j], copy_from, sizeof(*copy_from) * size);
  1945 				}
  1948 				}
  1946 				/* Install final layout construction in the industry spec */
  1949 				/* Install final layout construction in the industry spec */