src/unmovable_cmd.cpp
changeset 6427 7dc1012757d8
parent 6423 8e10e79e0fd1
child 6453 226bcddeba32
equal deleted inserted replaced
6426:dcfdb9b5991b 6427:7dc1012757d8
   123 			DrawClearLandTile(ti, 2);
   123 			DrawClearLandTile(ti, 2);
   124 
   124 
   125 			dtus = &_draw_tile_unmovable_data[GetUnmovableType(ti->tile)];
   125 			dtus = &_draw_tile_unmovable_data[GetUnmovableType(ti->tile)];
   126 
   126 
   127 			image = dtus->image;
   127 			image = dtus->image;
   128 			if (_display_opt & DO_TRANS_BUILDINGS) {
   128 			if (HASBIT(_transparent_opt, TO_STRUCTURES)) {
   129 				SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
   129 				SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
   130 				pal = PALETTE_TO_TRANSPARENT;
   130 				pal = PALETTE_TO_TRANSPARENT;
   131 			} else {
   131 			} else {
   132 				pal = PAL_NONE;
   132 				pal = PAL_NONE;
   133 			}
   133 			}
   141 
   141 
   142 		case UNMOVABLE_STATUE:
   142 		case UNMOVABLE_STATUE:
   143 			DrawGroundSprite(SPR_CONCRETE_GROUND, PAL_NONE);
   143 			DrawGroundSprite(SPR_CONCRETE_GROUND, PAL_NONE);
   144 
   144 
   145 			image = SPR_STATUE_COMPANY;
   145 			image = SPR_STATUE_COMPANY;
   146 			if (_display_opt & DO_TRANS_BUILDINGS) {
   146 			if (HASBIT(_transparent_opt, TO_STRUCTURES)) {
   147 				SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
   147 				SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
   148 				pal = PALETTE_TO_TRANSPARENT;
   148 				pal = PALETTE_TO_TRANSPARENT;
   149 			} else {
   149 			} else {
   150 				pal = PLAYER_SPRITE_COLOR(GetTileOwner(ti->tile));
   150 				pal = PLAYER_SPRITE_COLOR(GetTileOwner(ti->tile));
   151 			}
   151 			}
   177 			t = &_unmovable_display_datas[GetCompanyHQSection(ti->tile)];
   177 			t = &_unmovable_display_datas[GetCompanyHQSection(ti->tile)];
   178 			DrawGroundSprite(t->ground_sprite, palette);
   178 			DrawGroundSprite(t->ground_sprite, palette);
   179 
   179 
   180 			foreach_draw_tile_seq(dtss, t->seq) {
   180 			foreach_draw_tile_seq(dtss, t->seq) {
   181 				image = dtss->image;
   181 				image = dtss->image;
   182 				if (_display_opt & DO_TRANS_BUILDINGS) {
   182 				if (HASBIT(_transparent_opt, TO_STRUCTURES)) {
   183 					SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
   183 					SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
   184 					pal = PALETTE_TO_TRANSPARENT;
   184 					pal = PALETTE_TO_TRANSPARENT;
   185 				} else {
   185 				} else {
   186 					pal = palette;
   186 					pal = palette;
   187 				}
   187 				}