1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

* minor improvements

This commit is contained in:
mateuszb 2009-09-11 13:18:20 +00:00
parent c8ac6cf914
commit 34ef79d15e
2 changed files with 3 additions and 2 deletions

View File

@ -689,7 +689,7 @@ bool CBattleAttack::checkInitialConditions()
}
CBattleAttack::CBattleAttack(CBattleInterface * _owner, int _stackID)
: CBattleStackAnimation(_owner, _stackID), hitCount(0), sh(-1)
: CBattleStackAnimation(_owner, _stackID), sh(-1)
{
}
@ -2608,6 +2608,8 @@ void CBattleInterface::showAliveStack(int ID, const std::map<int, CStack> & stac
int affectingSpeed = settings.animSpeed;
if(animType == 1 || animType == 2) //standing stacks should not stand faster :)
affectingSpeed = 2;
if(animType == 3 || animType == 11 || animType == 12 || animType == 13) //defend & attack should be slower
affectingSpeed = 1;
bool incrementFrame = (animCount%(4/affectingSpeed)==0) && animType!=5 && animType!=20 && animType!=2;
if(animType == 2)

View File

@ -158,7 +158,6 @@ class CBattleAttack : public CBattleStackAnimation
protected:
int IDby; //attacked stack
int dest; //atacked hex
int hitCount; //for delaying animation
bool reversing;
int posShiftDueToDist;
bool shooting;