1
This commit is contained in:
parent
7474f9a409
commit
b110ef9499
@ -116,17 +116,14 @@ class Rankings {
|
|||||||
if (element.score>2800) {
|
if (element.score>2800) {
|
||||||
if (sorted.length >= 10000){
|
if (sorted.length >= 10000){
|
||||||
if (element.score >= sorted[sorted.length - 1].score){
|
if (element.score >= sorted[sorted.length - 1].score){
|
||||||
sorted.pop()
|
this._recordsSort(sorted,element);
|
||||||
this._recordsSort(sorted,element)
|
sorted.pop();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this._recordsSort(sorted,element)
|
this._recordsSort(sorted,element);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (sorted.length>10000) {
|
|
||||||
// sorted.length = 10000;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_recordsSort(sorted,element){
|
_recordsSort(sorted,element){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user