MAPG-235 timeLimit restored after reload of the page. Time limit selector usability improved
This commit is contained in:
1 parent
b78d564f6f
commit
aadeda05af
5 files changed
+26
-4
No files matched your search
@@ -239,6 +239,11 @@ class GameFlowController
|
||||
|
||||
$response = $this->prepareChallengeResponse($userId, $challenge, $currentRound, true);
|
||||
|
||||
if ($challenge->getTimeLimitType() === 'game' && $userInChallenge->getCurrentRound() > 0) {
|
||||
$timeLimit = max(10, $userInChallenge->getTimeLeft());
|
||||
$response['restrictions']['timeLimit'] = $timeLimit * 1000;
|
||||
}
|
||||
|
||||
return new JsonContent($response);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user