Skip to content

Commit

Permalink
?.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Dec 10, 2024
1 parent f61aa03 commit 52cb934
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions referee/referee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ global.playerDisconnected = async (addr: number, player: number) => {
result: "disconnect",
playerOne: {
pkh: Object.values(players).find(p => p.playerNumber === 0)?.ephemeralKey,
kills: hydra.clients[0].kills,
kills: hydra.clients[0]?.kills,
},
playerTwo: {
pkh: Object.values(players).find(p => p.playerNumber === 1)?.ephemeralKey,
kills: hydra.clients[1].kills,
kills: hydra.clients[1]?.kills,
}
})
if (!RECORD_STATS) return;
Expand Down Expand Up @@ -357,11 +357,11 @@ while (!done) {
result: "finished",
playerOne: {
pkh: Object.values(players).find(p => p.playerNumber === 0)?.ephemeralKey,
kills: hydra.clients[0].kills,
kills: hydra.clients[0]?.kills,
},
playerTwo: {
pkh: Object.values(players).find(p => p.playerNumber === 1)?.ephemeralKey,
kills: hydra.clients[1].kills,
kills: hydra.clients[1]?.kills,
}
});
}
Expand All @@ -373,11 +373,11 @@ while (!done) {
result: "timeout",
playerOne: {
pkh: Object.values(players).find(p => p.playerNumber === 0)?.ephemeralKey,
kills: hydra.clients[0].kills,
kills: hydra.clients[0]?.kills,
},
playerTwo: {
pkh: Object.values(players).find(p => p.playerNumber === 1)?.ephemeralKey,
kills: hydra.clients[1].kills,
kills: hydra.clients[1]?.kills,
}
});
}
Expand Down

0 comments on commit 52cb934

Please sign in to comment.