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

* better positioning of moat/mlip

* minor change
This commit is contained in:
mateuszb
2009-09-07 12:30:10 +00:00
parent 956a87f264
commit ea5a836a7e
7 changed files with 50 additions and 17 deletions

View File

@@ -1077,8 +1077,11 @@ DLL_EXPORT void CatapultAttack::applyGs( CGameState *gs )
{
if(gs->curB && gs->curB->siege != 0) //if there is a battle and it's a siege
{
gs->curB->si.wallState[attackedPartOfWall] =
std::min( gs->curB->si.wallState[attackedPartOfWall] + damageDealt, 3 );
for(std::set< std::pair<ui8, ui8> >::const_iterator it = attackedParts.begin(); it != attackedParts.end(); ++it)
{
gs->curB->si.wallState[it->first] =
std::min( gs->curB->si.wallState[it->first] + it->second, 3 );
}
}
}