minor cleanup

This commit is contained in:
kremsy
2014-02-13 00:46:41 +01:00
committed by Steffen Schröder
parent b1921fcc2b
commit 22707ea946
9 changed files with 61 additions and 59 deletions

View File

@ -96,7 +96,7 @@ class RankingManager implements CallbackListener {
public function getLeaders() {
$leaders = array();
$prev = -1;
foreach($this->rankings as $player => $score) {
foreach($this->rankings as $score) {
if ($prev != -1 && $prev < $score) {
return $leaders;
}