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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user