DjWarmonger 11 years ago
parent
commit
01491f9f1e

BIN
Mods/vcmi/Data/stackWindow/info-panel-1.png


BIN
Mods/vcmi/Data/stackWindow/info-panel-2.png


+ 7 - 3
client/widgets/AdventureMapClasses.cpp

@@ -368,11 +368,15 @@ const SDL_Color & CMinimapInstance::getTileColor(const int3 & pos)
 		return fogOfWar;
 		return fogOfWar;
 
 
 	// if object at tile is owned - it will be colored as its owner
 	// if object at tile is owned - it will be colored as its owner
-	for(const CGObjectInstance *obj : tile->blockingObjects)
+	for (const CGObjectInstance *obj : tile->blockingObjects)
 	{
 	{
 		//heroes will be blitted later
 		//heroes will be blitted later
-		if (obj->ID == Obj::HERO)
-			continue;
+		switch (obj->ID)
+		{
+			case Obj::HERO:
+			case Obj::PRISON:
+				continue;
+		}
 
 
 		PlayerColor player = obj->getOwner();
 		PlayerColor player = obj->getOwner();
 		if(player == PlayerColor::NEUTRAL)
 		if(player == PlayerColor::NEUTRAL)