industry_cmd.c
changeset 817 238bbdaa228b
parent 679 04ca2cd69420
child 830 36c1366367e4
equal deleted inserted replaced
816:cee64d137cc8 817:238bbdaa228b
   835 {
   835 {
   836 	int index = i - _industries;
   836 	int index = i - _industries;
   837 
   837 
   838 	BEGIN_TILE_LOOP(tile_cur,	i->width, i->height, i->xy);
   838 	BEGIN_TILE_LOOP(tile_cur,	i->width, i->height, i->xy);
   839 		if (IS_TILETYPE(tile_cur, MP_INDUSTRY)) {
   839 		if (IS_TILETYPE(tile_cur, MP_INDUSTRY)) {
   840 			if (_map2[tile_cur] == (byte)index) {
   840 			if (_map2[tile_cur] == (uint16)index) {
   841 				DoClearSquare(tile_cur);
   841 				DoClearSquare(tile_cur);
   842 			}
   842 			}
   843 		} else if (IS_TILETYPE(tile_cur, MP_STATION) && _map5[tile_cur] == 0x4B) {
   843 		} else if (IS_TILETYPE(tile_cur, MP_STATION) && _map5[tile_cur] == 0x4B) {
   844 			DeleteOilRig(tile_cur);
   844 			DeleteOilRig(tile_cur);
   845 		}
   845 		}