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:
parent
15f57a0817
commit
68b11dbe38
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user