tree_cmd.c
changeset 2148 542ea702738c
parent 2118 aec8042f000b
child 2153 ecfc674410b4
equal deleted inserted replaced
2147:eb6ba42fd216 2148:542ea702738c
     1 #include "stdafx.h"
     1 #include "stdafx.h"
     2 #include "openttd.h"
     2 #include "openttd.h"
     3 #include "table/strings.h"
     3 #include "table/strings.h"
       
     4 #include "table/sprites.h"
     4 #include "table/tree_land.h"
     5 #include "table/tree_land.h"
     5 #include "map.h"
     6 #include "map.h"
     6 #include "tile.h"
     7 #include "tile.h"
     7 #include "viewport.h"
     8 #include "viewport.h"
     8 #include "command.h"
     9 #include "command.h"
   300 		/* put the trees to draw in a list */
   301 		/* put the trees to draw in a list */
   301 		i = (ti->map5 >> 6) + 1;
   302 		i = (ti->map5 >> 6) + 1;
   302 		do {
   303 		do {
   303 			uint32 image = s[0] + (--i == 0 ? (ti->map5 & 7) : 3);
   304 			uint32 image = s[0] + (--i == 0 ? (ti->map5 & 7) : 3);
   304 			if (_display_opt & DO_TRANS_BUILDINGS)
   305 			if (_display_opt & DO_TRANS_BUILDINGS)
   305 				image = (image & 0x3FFF) | 0x3224000;
   306 				MAKE_TRANSPARENT(image);
   306 			te[i].image = image;
   307 			te[i].image = image;
   307 			te[i].x = d[0];
   308 			te[i].x = d[0];
   308 			te[i].y = d[1];
   309 			te[i].y = d[1];
   309 			s++;
   310 			s++;
   310 			d += 2;
   311 			d += 2;