MAP-235 fixed overlapping markers of history and user's guesses

This commit is contained in:
Balázs Vigh 2021-05-13 19:55:32 +02:00
parent 69964acfb2
commit 21e41b7c36

View File

@ -381,7 +381,7 @@ class GameFlowController
]; ];
foreach($this->guessRepository->getAllInChallengeByRound($i, $challenge) as $guess) { foreach($this->guessRepository->getAllInChallengeByRound($i, $challenge) as $guess) {
// if($guess->getUserId() != $userId) { if($guess->getUserId() != $userId) {
$user = $this->userRepository->getByGuess($guess); $user = $this->userRepository->getByGuess($guess);
$response['history'][$i]['allResults'][] = [ $response['history'][$i]['allResults'][] = [
@ -390,7 +390,7 @@ class GameFlowController
'distance' => $guess->getDistance(), 'distance' => $guess->getDistance(),
'score' => $guess->getScore() 'score' => $guess->getScore()
]; ];
// } }
} }
} }