removed comments
This commit is contained in:
@@ -34,7 +34,6 @@ export default (io, socket) => {
|
||||
}
|
||||
};
|
||||
|
||||
// --- FIX: Timer Callback ---
|
||||
const handleAutoPlay = (matchId) => (userId, cardId) => {
|
||||
const match = getMatch(matchId);
|
||||
if (!match || match.status !== "Playing") return;
|
||||
@@ -66,7 +65,6 @@ export default (io, socket) => {
|
||||
});
|
||||
const matchData = res.data.data || res.data;
|
||||
|
||||
// Pass handleAutoPlay to constructor
|
||||
match = new BiscaMatch(
|
||||
matchData,
|
||||
createMatchEmitter(matchId),
|
||||
@@ -126,7 +124,6 @@ export default (io, socket) => {
|
||||
if(!match || match.status !== "Playing") return;
|
||||
const userId = socket.user.id;
|
||||
|
||||
// FIX: Abort current game to remove ghost
|
||||
await match.abortCurrentGame(userId);
|
||||
|
||||
console.log(`[Match ${matchId}] User ${userId} surrendered MATCH.`);
|
||||
@@ -144,7 +141,6 @@ export default (io, socket) => {
|
||||
if (userId === match.player1Id || userId === match.player2Id) {
|
||||
console.log(`[Match ${match.id}] Player ${userId} disconnected.`);
|
||||
|
||||
// FIX: Abort current game
|
||||
await match.abortCurrentGame(userId);
|
||||
|
||||
const opponentId = match.player1Id == userId ? match.player2Id : match.player1Id;
|
||||
|
||||
Reference in New Issue
Block a user