From 5fc66fe881b747999f1c957b7440d6527348b419 Mon Sep 17 00:00:00 2001
From: johns <>
Date: Thu, 15 Mar 2001 19:37:26 +0000
Subject: [PATCH] Only buildings that known are visible under fog of war.

---
 src/unit/unit.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp
index 1b4f6c094..4f34cc64b 100644
--- a/src/unit/unit.cpp
+++ b/src/unit/unit.cpp
@@ -766,12 +766,12 @@ global int UnitVisible(const Unit* unit)
     //
     //	Check explored or if visible (building) under fog of war.
     //		FIXME: need only check the boundary, not the complete rectangle.
-    //		FIXME: do we know this building SeenFrame!=-1 ?
     //
     for( ; (int)h>=0; --h) {
 	for( w=w0; (int)w>=0; --w ) {
 	    if( IsMapFieldVisible(x+w,y+h) 
-		    || (unit->Type->Building && IsMapFieldExplored(x+w,y+h)) ) {
+		    || (unit->Type->Building && unit->SeenFrame!=0xFF
+			&& IsMapFieldExplored(x+w,y+h)) ) {
 		return 1;
 	    }
 	}