mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Support simturn timers
This commit is contained in:
parent
2e3e116bc4
commit
a09c595cf4
@ -300,7 +300,7 @@ void CServerHandler::applyPacksOnLobbyScreen()
|
||||
CPackForLobby * pack = packsForLobbyScreen.front();
|
||||
packsForLobbyScreen.pop_front();
|
||||
CBaseForLobbyApply * apply = applier->getApplier(typeList.getTypeID(pack)); //find the applier
|
||||
apply->applyOnLobbyScreen(static_cast<CLobbyScreen *>(SEL), this, pack);
|
||||
apply->applyOnLobbyScreen(dynamic_cast<CLobbyScreen *>(SEL), this, pack);
|
||||
GH.windows().totalRedraw();
|
||||
delete pack;
|
||||
}
|
||||
|
@ -150,10 +150,15 @@ void TurnTimerWidget::tick(uint32_t msPassed)
|
||||
}
|
||||
else
|
||||
{
|
||||
for(PlayerColor p(0); p < PlayerColor::PLAYER_LIMIT; ++p)
|
||||
if(LOCPLINT->makingTurn)
|
||||
updateTimer(LOCPLINT->playerID, msPassed);
|
||||
else
|
||||
{
|
||||
if(LOCPLINT->cb->isPlayerMakingTurn(p))
|
||||
updateTimer(p, msPassed);
|
||||
for(PlayerColor p(0); p < PlayerColor::PLAYER_LIMIT; ++p)
|
||||
{
|
||||
if(LOCPLINT->cb->isPlayerMakingTurn(p))
|
||||
updateTimer(p, msPassed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user