From 06ab957c18602a77b811acf6433569f899b8dcfa Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Fri, 24 Jul 2020 20:31:57 -0700 Subject: [PATCH] BigOverlays is now affected by Fog of War. --- code/redalert/bigoverlay.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/redalert/bigoverlay.cpp b/code/redalert/bigoverlay.cpp index d51eac3..1fcbe9a 100644 --- a/code/redalert/bigoverlay.cpp +++ b/code/redalert/bigoverlay.cpp @@ -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);