1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

TurnTimerHandler is now a unique_ptr

This commit is contained in:
Ivan Savenko
2024-04-26 13:15:39 +03:00
parent a99d5e6fa1
commit 090a1c7764
5 changed files with 11 additions and 12 deletions

View File

@@ -30,12 +30,12 @@ bool TimerPauseQuery::blocksPack(const CPack *pack) const
void TimerPauseQuery::onAdding(PlayerColor color)
{
gh->turnTimerHandler.setTimerEnabled(color, false);
gh->turnTimerHandler->setTimerEnabled(color, false);
}
void TimerPauseQuery::onRemoval(PlayerColor color)
{
gh->turnTimerHandler.setTimerEnabled(color, true);
gh->turnTimerHandler->setTimerEnabled(color, true);
}
bool TimerPauseQuery::endsByPlayerAnswer() const