src/newgrf_house.cpp
changeset 8570 f50de4804ff1
parent 8458 38fe72ff1402
child 8571 53c94d717e99
equal deleted inserted replaced
8569:b2dbac0c0cf5 8570:f50de4804ff1
   295 	if (IS_CUSTOM_SPRITE(image)) image += stage;
   295 	if (IS_CUSTOM_SPRITE(image)) image += stage;
   296 
   296 
   297 	if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal);
   297 	if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal);
   298 
   298 
   299 	foreach_draw_tile_seq(dtss, dts->seq) {
   299 	foreach_draw_tile_seq(dtss, dts->seq) {
   300 		if (GB(dtss->image, 0, SPRITE_WIDTH) == 0) continue;
   300 		if (GB(dtss->image.sprite, 0, SPRITE_WIDTH) == 0) continue;
   301 
   301 
   302 		image = dtss->image;
   302 		image = dtss->image.sprite;
   303 		pal   = dtss->pal;
   303 		pal   = dtss->image.pal;
   304 
   304 
   305 		if (IS_CUSTOM_SPRITE(image)) image += stage;
   305 		if (IS_CUSTOM_SPRITE(image)) image += stage;
   306 
   306 
   307 		if ((HasBit(image, SPRITE_MODIFIER_OPAQUE) || !IsTransparencySet(TO_HOUSES)) && HasBit(image, PALETTE_MODIFIER_COLOR)) {
   307 		if ((HasBit(image, SPRITE_MODIFIER_OPAQUE) || !IsTransparencySet(TO_HOUSES)) && HasBit(image, PALETTE_MODIFIER_COLOR)) {
   308 			if (pal == 0) {
   308 			if (pal == 0) {