mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
BigOverlays is now affected by Fog of War.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user