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

battle improvements

This commit is contained in:
mateuszb
2008-03-15 17:48:05 +00:00
parent 7b88f4a70b
commit d106fdcf2a
6 changed files with 76 additions and 44 deletions

View File

@ -1876,16 +1876,16 @@ 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;
unsigned char showCount = 0;
while(true)
{
++av;
++showCount;
SDL_Event sEvent;
while (SDL_PollEvent(&sEvent)) //wait for event...
{
LOCPLINT->handleEvent(&sEvent);
}
if(av%3==0)
if(showCount%2==0)
for(int i=0;i<objsToBlit.size();i++)
objsToBlit[i]->show();
//SDL_Flip(ekran);