From ea4d95860a0855fba4c19ffdc08000fcf216af26 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Fri, 24 Jul 2020 20:37:46 -0700 Subject: [PATCH] Fixed a bug were bigoverlay wouldn't show in editor due to fog of war. Debug bigoverlay tiles are now disabled. --- code/redalert/bigoverlay.cpp | 2 +- code/redalert/cell.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/redalert/bigoverlay.cpp b/code/redalert/bigoverlay.cpp index 1fcbe9a..54a08a0 100644 --- a/code/redalert/bigoverlay.cpp +++ b/code/redalert/bigoverlay.cpp @@ -57,7 +57,7 @@ void BigOverlay::draw_it(void) { CELL cell = Coord_Cell(position); CellClass* cellptr = &(Map)[cell]; - if (!(cellptr->Is_Mapped(PlayerPtr) && cellptr->Is_Visible(PlayerPtr))) + if ((!(cellptr->Is_Mapped(PlayerPtr) && cellptr->Is_Visible(PlayerPtr))) && !Debug_Unshroud) return; int screenx, screeny; diff --git a/code/redalert/cell.cpp b/code/redalert/cell.cpp index 40cb1aa..899334a 100644 --- a/code/redalert/cell.cpp +++ b/code/redalert/cell.cpp @@ -1121,9 +1121,9 @@ void CellClass::Draw_It(int x, int y, bool objects) } // jmarshall - debug mechanism - if (bigOverlay != NULL) { - GL_SetColor(0.35, 0.35, 0.35); - } + //if (bigOverlay != NULL) { + // GL_SetColor(0.35, 0.35, 0.35); + //} // jmarshall end CellCount++;