1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-24 00:36:29 +02:00

- repaired wrong decompressing defs type 2 (mainly effected shadows)

- fixed #34
- correctly working most of CCreatureHandler (except displaying only specific part of animation)
This commit is contained in:
mateuszb
2008-01-07 18:24:05 +00:00
parent e44c6b47f3
commit 8c651b5021
3 changed files with 45 additions and 4 deletions

View File

@@ -1094,8 +1094,15 @@ void CPlayerInterface::heroMoved(const HeroMoveDetails & details)
LOCPLINT->adventureInt->update(); //updating screen
CSDL_Ext::update(ekran);
CGI->screenh->updateScreen();
LOCPLINT->adventureInt->anim++;
adventureInt->animValHitCount=0;
++LOCPLINT->adventureInt->animValHitCount; //for animations
if(LOCPLINT->adventureInt->animValHitCount == 4)
{
LOCPLINT->adventureInt->animValHitCount = 0;
++LOCPLINT->adventureInt->anim;
LOCPLINT->adventureInt->updateScreen = true;
}
SDL_framerateDelay(mainFPSmng); //for animation purposes
} //for(int i=1; i<32; i+=4)
//main moving done