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

* hero is displayed in battle window

* battle console buttons added
* blit8bppAlphaTo24bpp bad working fixed (to be optimized)
* maybe something else
This commit is contained in:
mateuszb
2008-03-03 19:41:10 +00:00
parent ab3d7fccb5
commit 9b9a9b455f
8 changed files with 160 additions and 30 deletions

View File

@ -1884,7 +1884,19 @@ void CPlayerInterface::activeStack(int stackID) //called when it's turn of that
objsToBlit[i]->show();
//SDL_Flip(ekran);
CSDL_Ext::update(ekran);
SDL_Delay(5); //give time for other apps
/*timeHandler th;
th.getDif();
int tv = th.getDif();
for (int i=0;i<((CBattleInterface*)this->curint)->timeinterested.size();i++)
{
if (timeinterested[i]->toNextTick>=0)
timeinterested[i]->toNextTick-=tv;
if (timeinterested[i]->toNextTick<0)
timeinterested[i]->tick();
}*/
SDL_Delay(1); //give time for other apps
SDL_framerateDelay(mainFPSmng);
}
}