mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
* fixed bug reported by Zamolxis (see http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=3052#3052)
This commit is contained in:
parent
27dda485a4
commit
150a79d643
@ -519,13 +519,17 @@ void CBattleInterface::show(SDL_Surface * to)
|
||||
int curStackID = stackAliveByHex[b][v];
|
||||
const CStack &curStack = stacks[curStackID];
|
||||
int animType = creAnims[curStackID]->getType();
|
||||
bool incrementFrame = (animCount%(4/settings.animSpeed)==0) && animType!=5 && animType!=20 && animType!=3 && animType!=2;
|
||||
|
||||
int affectingSpeed = settings.animSpeed;
|
||||
if(animType == 1 || animType == 2) //standing stacks should not stand faster :)
|
||||
affectingSpeed = 2;
|
||||
bool incrementFrame = (animCount%(4/affectingSpeed)==0) && animType!=5 && animType!=20 && animType!=3 && animType!=2;
|
||||
|
||||
if(animType == 2)
|
||||
{
|
||||
if(standingFrame.find(curStackID)!=standingFrame.end())
|
||||
{
|
||||
incrementFrame = (animCount%(8/settings.animSpeed)==0);
|
||||
incrementFrame = (animCount%(8/affectingSpeed)==0);
|
||||
if(incrementFrame)
|
||||
{
|
||||
++standingFrame[curStackID];
|
||||
|
Loading…
x
Reference in New Issue
Block a user