Browse Source

* fixed incorrectly blocked positions reported by Warmonger ( http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=3396#3396 )

mateuszb 16 years ago
parent
commit
4743bff359
2 changed files with 2 additions and 2 deletions
  1. 1 1
      config/obstacles.txt
  2. 1 1
      lib/CGameState.cpp

+ 1 - 1
config/obstacles.txt

@@ -31,7 +31,7 @@ BATTLE OBSTACLES
 17 OBDSM02.DEF XXLNX 1111100000000010000000100
 17 OBDSM02.DEF XXLNX 1111100000000010000000100
 18 OBDSS17.DEF XXLNXXX 1111100000000010000000100
 18 OBDSS17.DEF XXLNXXX 1111100000000010000000100
 11 OBDTF03.DEF XX 1111100000000010000000100
 11 OBDTF03.DEF XX 1111100000000010000000100
-12 OBDTS03.DEF XXXX 1111100000000010000000100
+12 OBDTS03.DEF LLNXXXX 1111100000000010000000100
 13 OBDTS04.DEF LNXX 1111100000000010000000100
 13 OBDTS04.DEF LNXX 1111100000000010000000100
 14 OBDTS14.DEF XXLNNX 1111100000000010000000100
 14 OBDTS14.DEF XXLNNX 1111100000000010000000100
 15 OBDTS15.DEF XLXLNX 1111100000000010000000100
 15 OBDTS15.DEF XLXLNX 1111100000000010000000100

+ 1 - 1
lib/CGameState.cpp

@@ -301,7 +301,7 @@ void BattleInfo::getAccessibilityMap(bool *accessibility, bool twoHex, bool atta
 	}
 	}
 
 
 	//walls
 	//walls
-	if(siege >= 0)
+	if(siege > 0)
 	{
 	{
 		static const int permanentlyLocked[] = {12, 45, 78, 112, 147, 182};
 		static const int permanentlyLocked[] = {12, 45, 78, 112, 147, 182};
 		for(int b=0; b<ARRAY_COUNT(permanentlyLocked); ++b)
 		for(int b=0; b<ARRAY_COUNT(permanentlyLocked); ++b)