1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

another piece of battles (and CCreatureAnimation)

This commit is contained in:
mateuszb
2008-03-05 17:01:41 +00:00
parent ffd3742e3d
commit 4236c65512
5 changed files with 153 additions and 26 deletions

View File

@ -1873,15 +1873,18 @@ void CPlayerInterface::actionFinished(Action action)//occurs AFTER every action
void CPlayerInterface::activeStack(int stackID) //called when it's turn of that stack
{
unsigned int av=0;
while(true)
{
++av;
SDL_Event sEvent;
while (SDL_PollEvent(&sEvent)) //wait for event...
{
LOCPLINT->handleEvent(&sEvent);
}
for(int i=0;i<objsToBlit.size();i++)
objsToBlit[i]->show();
if(av%3==0)
for(int i=0;i<objsToBlit.size();i++)
objsToBlit[i]->show();
//SDL_Flip(ekran);
CSDL_Ext::update(ekran);