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);