mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
TurnTimerInfo
This commit is contained in:
@@ -77,11 +77,11 @@ void TurnTimerWidget::tick(uint32_t msPassed)
|
||||
auto player = LOCPLINT->cb->getCurrentPlayer();
|
||||
auto time = LOCPLINT->cb->getPlayerTurnTime(player);
|
||||
cachedTurnTime -= msPassed;
|
||||
if(time / 1000 != lastTurnTime / 1000)
|
||||
if(time.turnTimer / 1000 != lastTurnTime / 1000)
|
||||
{
|
||||
//do not update timer on this tick
|
||||
lastTurnTime = time;
|
||||
cachedTurnTime = time;
|
||||
lastTurnTime = time.turnTimer;
|
||||
cachedTurnTime = time.turnTimer;
|
||||
}
|
||||
else setTime(cachedTurnTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user