增加优先匹配机器人的逻辑
This commit is contained in:
parent
9c49d2b2d3
commit
ff12e937b1
@ -282,7 +282,8 @@ export class RankedLobbyRoom extends Room {
|
|||||||
* Match long-waiting clients with bots
|
* Match long-waiting clients with bots
|
||||||
* FIXME: peers of this group may be entered short ago
|
* FIXME: peers of this group may be entered short ago
|
||||||
*/
|
*/
|
||||||
(stat.waitingTime >= this.maxWaitingTime && this.allowUnmatchedGroups)
|
(stat.waitingTime >= this.maxWaitingTime && this.allowUnmatchedGroups) ||
|
||||||
|
stat.priority
|
||||||
) {
|
) {
|
||||||
currentGroup.ready = true;
|
currentGroup.ready = true;
|
||||||
currentGroup = this.createGroup();
|
currentGroup = this.createGroup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user