BigOverlays is now affected by Fog of War.

This commit is contained in:
Justin Marshall
2020-07-24 20:31:57 -07:00
parent 618a31fb8c
commit 06ab957c18
+6
View File
@@ -54,6 +54,12 @@ BigOverlay::draw_it
======================
*/
void BigOverlay::draw_it(void) {
CELL cell = Coord_Cell(position);
CellClass* cellptr = &(Map)[cell];
if (!(cellptr->Is_Mapped(PlayerPtr) && cellptr->Is_Visible(PlayerPtr)))
return;
int screenx, screeny;
GetRenderPosition(screenx, screeny);
GL_RenderImage(image, screenx, screeny, image->width, image->height);