TourneyMatchSpecialInfo code quality
This commit is contained in:
parent
8c2e4823cd
commit
44838a9629
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
const osu = require("osu-packet"),
|
const osu = require("osu-packet"),
|
||||||
|
UserPresence = require("./UserPresence.js"),
|
||||||
|
StatusUpdate = require("./StatusUpdate.js"),
|
||||||
ActionBuffer = require("../ActionBuffer.js");
|
ActionBuffer = require("../ActionBuffer.js");
|
||||||
const UserPresence = require("./UserPresence.js"),
|
|
||||||
StatusUpdate = require("./StatusUpdate.js");
|
|
||||||
|
|
||||||
module.exports = function(CurrentUser, MatchID) {
|
module.exports = function(CurrentUser, MatchID) {
|
||||||
const matchData = global.MultiplayerManager.getMatchInfoForTourneyClient(MatchID);
|
const matchData = global.MultiplayerManager.getMatchInfoForTourneyClient(MatchID);
|
||||||
|
@ -13,8 +13,7 @@ module.exports = function(CurrentUser, MatchID) {
|
||||||
|
|
||||||
let actions = new ActionBuffer(osuPacketWriter.toBuffer);
|
let actions = new ActionBuffer(osuPacketWriter.toBuffer);
|
||||||
|
|
||||||
for (let i = 0; i < matchData.slots.length; i++) {
|
for (let slot in matchData.slots) {
|
||||||
const slot = matchData.slots[i];
|
|
||||||
actions.bufferAction(UserPresence(CurrentUser, slot.playerId, false));
|
actions.bufferAction(UserPresence(CurrentUser, slot.playerId, false));
|
||||||
actions.bufferAction(StatusUpdate(CurrentUser, slot.playerId, false));
|
actions.bufferAction(StatusUpdate(CurrentUser, slot.playerId, false));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue