mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Extended timer info to exhange between client and server
This commit is contained in:
@@ -140,7 +140,6 @@ CPlayerInterface::CPlayerInterface(PlayerColor Player):
|
||||
firstCall = 1; //if loading will be overwritten in serialize
|
||||
autosaveCount = 0;
|
||||
isAutoFightOn = false;
|
||||
timerEnabled = true;
|
||||
duringMovement = false;
|
||||
ignoreEvents = false;
|
||||
numOfMovedArts = 0;
|
||||
@@ -272,8 +271,6 @@ void CPlayerInterface::yourTurn(QueryID queryID)
|
||||
makingTurn = true;
|
||||
adventureInt->onPlayerTurnStarted(playerID);
|
||||
}
|
||||
|
||||
timerEnabled = false;
|
||||
}
|
||||
acceptTurn(queryID);
|
||||
}
|
||||
@@ -326,7 +323,6 @@ void CPlayerInterface::acceptTurn(QueryID queryID)
|
||||
}
|
||||
|
||||
cb->selectionMade(0, queryID);
|
||||
timerEnabled = true;
|
||||
}
|
||||
|
||||
void CPlayerInterface::heroMoved(const TryMoveHero & details, bool verbose)
|
||||
@@ -2127,8 +2123,3 @@ std::optional<BattleAction> CPlayerInterface::makeSurrenderRetreatDecision(const
|
||||
{
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
bool CPlayerInterface::isTimerEnabled() const
|
||||
{
|
||||
return timerEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user