1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fix no-base turn timer

This commit is contained in:
nordsoft 2023-08-28 04:45:35 +04:00
parent 15f57a0817
commit 68b11dbe38

View File

@ -51,7 +51,8 @@ void TurnTimerHandler::onPlayerGetTurn(PlayerColor player)
if(si->turnTimerInfo.isEnabled())
{
std::lock_guard<std::recursive_mutex> guard(mx);
timers[player].baseTimer += timers[player].turnTimer;
if(si->turnTimerInfo.baseTimer > 0)
timers[player].baseTimer += timers[player].turnTimer;
timers[player].turnTimer = si->turnTimerInfo.turnTimer;
TurnTimeUpdate ttu;