1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00
- 0.72d #27
- 0.73 #13
This commit is contained in:
mateuszb
2009-08-07 09:45:21 +00:00
parent 3d93e0acf0
commit 9d531b0d84
5 changed files with 21 additions and 21 deletions

View File

@@ -976,14 +976,8 @@ void CPlayerInterface::battleStacksHealedRes(const std::vector<std::pair<ui32, u
void CPlayerInterface::battleNewStackAppeared(int stackID)
{
const CStack * newStack = cb->battleGetStackByID(stackID);
//changing necessary things in battle interface
std::pair <int, int> coords = CBattleHex::getXYUnitAnim(newStack->position, newStack->owner == battleInt->attackingHeroInstance->tempOwner, newStack);
battleInt->creAnims[newStack->ID] = (new CCreatureAnimation(newStack->creature->animDefName));
battleInt->creAnims[newStack->ID]->setType(2);
battleInt->creAnims[newStack->ID]->pos = genRect(battleInt->creAnims[newStack->ID]->fullHeight, battleInt->creAnims[newStack->ID]->fullWidth, coords.first, coords.second);
battleInt->creDir[newStack->ID] = newStack->owner == battleInt->attackingHeroInstance->tempOwner;
battleInt->newStack(stackID);
}
void CPlayerInterface::battleNewRound(int round) //called at the beggining of each turn, round=-1 is the tactic phase, round=0 is the first "normal" turn