mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
* Implemented Moat functionality during siege (stops movement and deals dmg)
* Mostly implemented battle spells: - Fire Wall - Force Field - Land Mine - Quicksands
This commit is contained in:
@@ -679,17 +679,17 @@ void CPlayerInterface::battleObstaclesRemoved(const std::set<si32> & removedObst
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user