1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

* animation of catapult

* stacks won't be reversed when attacked by turrets
This commit is contained in:
mateuszb
2009-09-24 13:44:55 +00:00
parent 307c20e7dc
commit 9a1669b926
7 changed files with 61 additions and 22 deletions

View File

@@ -998,12 +998,7 @@ void CPlayerInterface::battleObstaclesRemoved(const std::set<si32> & removedObst
void CPlayerInterface::battleCatapultAttacked(const CatapultAttack & ca)
{
for(std::set< std::pair<ui8, ui8> >::const_iterator it = ca.attackedParts.begin(); it != ca.attackedParts.end(); ++it)
{
SDL_FreeSurface(battleInt->siegeH->walls[it->first + 2]);
battleInt->siegeH->walls[it->first + 2] = BitmapHandler::loadBitmap(
battleInt->siegeH->getSiegeName(it->first + 2, cb->battleGetWallState(it->first)) );
}
battleInt->stackIsCatapulting(ca);
}
void CPlayerInterface::battleStacksRemoved(const BattleStacksRemoved & bsr)