src/tree_cmd.cpp
changeset 8452 8f87ace6640e
parent 8450 73371bb82922
child 8454 8d9d0731716c
equal deleted inserted replaced
8451:a3ae65b58eec 8452:8f87ace6640e
   426 		s = _tree_layout_sprite[index];
   426 		s = _tree_layout_sprite[index];
   427 	}
   427 	}
   428 
   428 
   429 	StartSpriteCombine();
   429 	StartSpriteCombine();
   430 
   430 
   431 	/* Do not draw trees when buildings are transparent and when the invisile trees patch is on */
   431 	/* Do not draw trees when the invisible trees patch and transparency tree are set */
   432 	if (!(_patches.invisible_trees && IsTransparencySet(TO_HOUSES))) {
   432 	if (!(IsTransparencySet(TO_TREES) && _patches.invisible_trees)) {
   433 		TreeListEnt te[4];
   433 		TreeListEnt te[4];
   434 		uint i;
   434 		uint i;
   435 
   435 
   436 		/* put the trees to draw in a list */
   436 		/* put the trees to draw in a list */
   437 		i = GetTreeCount(ti->tile) + 1;
   437 		i = GetTreeCount(ti->tile) + 1;