src/industry_cmd.cpp
changeset 6633 b2ad8da77b7e
parent 6631 dc3480a670cc
child 6669 487ac09b95c4
equal deleted inserted replaced
6632:1a46c01ff627 6633:b2ad8da77b7e
   357 		am = MoveGoodsToStation(i->xy, i->width, i->height, i->produced_cargo[0], cw);
   357 		am = MoveGoodsToStation(i->xy, i->width, i->height, i->produced_cargo[0], cw);
   358 		i->last_mo_transported[0] += am;
   358 		i->last_mo_transported[0] += am;
   359 		if (am != 0) {
   359 		if (am != 0) {
   360 			uint newgfx = GetIndustryTileSpec(GetIndustryGfx(tile))->anim_production;
   360 			uint newgfx = GetIndustryTileSpec(GetIndustryGfx(tile))->anim_production;
   361 
   361 
   362 			if (newgfx != INDUTILE_NOAMIN) {
   362 			if (newgfx != INDUTILE_NOANIM) {
   363 				ResetIndustryConstructionStage(tile);
   363 				ResetIndustryConstructionStage(tile);
   364 				SetIndustryCompleted(tile, true);
   364 				SetIndustryCompleted(tile, true);
   365 				SetIndustryGfx(tile, newgfx);
   365 				SetIndustryGfx(tile, newgfx);
   366 				MarkTileDirtyByTile(tile);
   366 				MarkTileDirtyByTile(tile);
   367 			}
   367 			}
   644 	if (_game_mode == GM_EDITOR) return;
   644 	if (_game_mode == GM_EDITOR) return;
   645 
   645 
   646 	TransportIndustryGoods(tile);
   646 	TransportIndustryGoods(tile);
   647 
   647 
   648 	newgfx = GetIndustryTileSpec(GetIndustryGfx(tile))->anim_next;
   648 	newgfx = GetIndustryTileSpec(GetIndustryGfx(tile))->anim_next;
   649 	if (newgfx != INDUTILE_NOAMIN) {
   649 	if (newgfx != INDUTILE_NOANIM) {
   650 		ResetIndustryConstructionStage(tile);
   650 		ResetIndustryConstructionStage(tile);
   651 		SetIndustryGfx(tile, newgfx);
   651 		SetIndustryGfx(tile, newgfx);
   652 		MarkTileDirtyByTile(tile);
   652 		MarkTileDirtyByTile(tile);
   653 		return;
   653 		return;
   654 	}
   654 	}