AlexVinS 9 năm trước cách đây
mục cha
commit
523e33a5e5
2 tập tin đã thay đổi với 0 bổ sung12 xóa
  1. 0 11
      client/CPlayerInterface.cpp
  2. 0 1
      client/CPlayerInterface.h

+ 0 - 11
client/CPlayerInterface.cpp

@@ -720,17 +720,6 @@ void CPlayerInterface::battleObstaclesRemoved(const std::set<si32> & removedObst
 	EVENT_HANDLER_CALLED_BY_CLIENT;
 	BATTLE_EVENT_POSSIBLE_RETURN;
 
-// 	for(std::set<si32>::const_iterator it = removedObstacles.begin(); it != removedObstacles.end(); ++it)
-// 	{
-// 		for(std::map< int, CDefHandler * >::iterator itBat = battleInt->idToObstacle.begin(); itBat != battleInt->idToObstacle.end(); ++itBat)
-// 		{
-// 			if(itBat->first == *it) //remove this obstacle
-// 			{
-// 				battleInt->idToObstacle.erase(itBat);
-// 				break;
-// 			}
-// 		}
-// 	}
 	//update accessible hexes
 	battleInt->redrawBackgroundWithHexes(battleInt->activeStack);
 }

+ 0 - 1
client/CPlayerInterface.h

@@ -29,7 +29,6 @@
 
 class CButton;
 class CToggleGroup;
-class CDefHandler;
 struct TryMoveHero;
 class CGHeroInstance;
 class CAdvMapInt;