Skip to content

Commit

Permalink
[fix] remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
whyNot077 committed Dec 15, 2023
1 parent 02e164d commit 602f82c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions project/backend/src/events/events.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -935,13 +935,8 @@ export class EventsService {
return; // 해당 소켓이 진행중이던 게임 없음
}

// const [meSocketId, opponentSocketId] =
// pong.player1Id === userId
// ? [pong.player1SocketId, pong.player2SocketId]
// : [pong.player2SocketId, pong.player1SocketId];

if (!pong.getGameState().gameStart) {
pong.setGameStart(); // 스타트 상태로 강제 전환인듯
pong.setGameStart();
}

const isPlayer1win = userId !== pong.player1Id;
Expand Down

0 comments on commit 602f82c

Please sign in to comment.