MAPG-235 simplified highscore calculation

This commit is contained in:
balazs committed 2021-05-26 08:16:32 +02:00
1 parent 283c214c50
commit 1c1e5f051d
2 files changed
+12 -21

No files matched your search

-8
View File
@@ -199,14 +199,6 @@ class GameFlowController implements ISecured
if (!isset($currentPlace)) { // game finished
$response['finished'] = true;
// list all players who finished the challenge
$response['finishers'] = [];
foreach ($this->userInChallengeRepository->getAllByChallengeWithUsers($challenge) as $userInChallenge) {
if ($userInChallenge->getCurrentRound() == $currentRound && $userInChallenge->getUser()->getId() != $userId) {
$response['finishers'][] = $userInChallenge->getUser()->getDisplayName();
}
}
} else { // continue game
$response['place'] = [
'panoId' => $currentPlace->getPanoIdCached(),