Overlays now render correctly.

This commit is contained in:
Justin Marshall
2020-07-03 21:31:14 -07:00
parent b8547b0519
commit 11f86ffe57
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -151,7 +151,9 @@ Player=Spain
Count=0 Count=0
[OverlayPack] [OverlayPack]
1=BwAAIIH//v8f/4AHAAAggf/+/x//gA== 1=igAAIIH//pEY/4EKAASBC/59AP+DCwsJ/nsA/4QMCwoLIQX+eAD/hAkL/wkAg/57AP+DCg
2=kK/3wAlxmBDNeYGv9oAJga1S8bhAn/DAz+YwD/gQrVshuBDAAB/nwA/4ELAAL/ewAxHAB9
3=gQn/fACYGoH/FJr/fAAWGf9/ABMZEoL+fwD//38AMh7+UAD/gAcAACCB//7/H/+A
[Briefing] [Briefing]
1=Tomorrow, the attack on Germany begins, but today, we must protect our 1=Tomorrow, the attack on Germany begins, but today, we must protect our
@@ -159,5 +161,5 @@ Count=0
3=costs, and destroy any Allied fortification you might find. 3=costs, and destroy any Allied fortification you might find.
[Digest] [Digest]
1=qoW9w17JXyFmGA2xlonKgOt1gMI= 1=dxNiLz3fQhsHkxKQbrST3BHHc6w=
+4 -1
View File
@@ -1183,8 +1183,11 @@ void CellClass::Draw_It(int x, int y, bool objects)
*/ */
if (Overlay != OVERLAY_NONE) { if (Overlay != OVERLAY_NONE) {
OverlayTypeClass const & otype = OverlayTypeClass::As_Reference(Overlay); OverlayTypeClass const & otype = OverlayTypeClass::As_Reference(Overlay);
int xx = x;
int yy = y;
ConvertCoordsToIsometric(xx, yy);
IsTheaterShape = (bool)otype.IsTheater; //Tell Build_Frame if this overlay is theater specific IsTheaterShape = (bool)otype.IsTheater; //Tell Build_Frame if this overlay is theater specific
CC_Draw_Shape(otype.Get_Image_Data(), OverlayData, (x+(CELL_PIXEL_W>>1)), (y+(CELL_PIXEL_H>>1)), WINDOW_TACTICAL, SHAPE_CENTER|SHAPE_WIN_REL|SHAPE_GHOST, NULL, DisplayClass::UnitShadow); CC_Draw_Shape(otype.Get_Image_Data(), OverlayData, (xx+(CELL_PIXEL_W>>1)), (yy+(CELL_PIXEL_H>>1)), WINDOW_TACTICAL, SHAPE_CENTER|SHAPE_WIN_REL|SHAPE_GHOST, NULL, DisplayClass::UnitShadow);
IsTheaterShape = false; IsTheaterShape = false;
} }