minor cleanup
This commit is contained in:
committed by
Steffen Schröder
parent
b1921fcc2b
commit
22707ea946
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user