src/tree_cmd.cpp
changeset 8944 8cd013359596
parent 8766 c86cfa3a7580
child 8946 85eff1ad8cda
equal deleted inserted replaced
8943:9706d328bb12 8944:8cd013359596
   426 		s = _tree_layout_sprite[index];
   426 		s = _tree_layout_sprite[index];
   427 	}
   427 	}
   428 
   428 
   429 	StartSpriteCombine();
   429 	StartSpriteCombine();
   430 
   430 
   431 	if (!(IsTransparencySet(TO_TREES) && _patches.invisible_trees)) {
   431 	/* Do not draw trees when buildings are transparent and when the invisile trees patch is on */
       
   432 	if (!(_patches.invisible_trees && IsTransparencySet(TO_HOUSES))) {
   432 		TreeListEnt te[4];
   433 		TreeListEnt te[4];
   433 		uint i;
   434 		uint i;
   434 
   435 
   435 		/* put the trees to draw in a list */
   436 		/* put the trees to draw in a list */
   436 		i = GetTreeCount(ti->tile) + 1;
   437 		i = GetTreeCount(ti->tile) + 1;