Browse Source

* Fixed: The Creatures inside the walls in the 1st row of hexes should have priority over the wall

beegee1 14 years ago
parent
commit
7c771e5c56
1 changed files with 6 additions and 1 deletions
  1. 6 1
      client/CBattleInterface.cpp

+ 6 - 1
client/CBattleInterface.cpp

@@ -3265,13 +3265,18 @@ void CBattleInterface::showPieceOfWall(SDL_Surface * to, int hex, const std::vec
 	if(!siegeH)
 		return;
 
-	static const std::map<int, int> hexToPart = boost::assign::map_list_of(12, 8)(16, 1)(29, 7)(50, 2)(62, 12)(78, 6)(112, 10)(147, 5)(165, 11)(182, 3)(186, 0);
+	static const std::map<int, int> hexToPart = boost::assign::map_list_of(12, 8)(29, 7)(50, 2)(62, 12)(78, 6)(112, 10)(147, 5)(165, 11)(182, 3)(186, 0);
 	
 	//additionally print bottom wall
 	if(hex == 182)
 	{
 		siegeH->printPartOfWall(to, 4);
 	}
+	// additionally print background wall, wall has lower priority than creatures in the most upper hexes
+	if (hex == 12)
+	{
+		siegeH->printPartOfWall(to, 1);
+	}
 
 	std::map<int, int>::const_iterator it = hexToPart.find(hex);
 	if(it != hexToPart.end())