Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a078ff

Browse files
committed
remove TODOs for finished things
1 parent 94b8363 commit 8a078ff

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

‎http/gateway/handler.go‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ func HandleDeath(r *room.Room, loser *player.Player, winner *player.Player) {
307307
return
308308
}
309309

310-
// TODO: loser is kicked instead of shown the result screen
311310
conn.Send(AnyMessage {
312311
Op: OpClose,
313312
T: PlayerKickEvent,
@@ -339,8 +338,6 @@ func HandleEnd(r *room.Room) {
339338
return
340339
}
341340

342-
// TODO: winner is kicked without a reason
343-
// instead, don't use OpClose and send it as event instead
344341
conn.Send(AnyMessage{
345342
Op: OpClose,
346343
T: PlayerKickEvent,
@@ -354,7 +351,5 @@ func HandleEnd(r *room.Room) {
354351

355352
handleClose(conn)
356353

357-
// TODO: delete room and create new room
358-
// or alternatively, create a reset function on room struct
359-
// that sets the state to waiting and other prep stuff
354+
r.Reset()
360355
}

‎http/gateway/nom_key.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ func NomKeyEventCallback(c *WebSocketConnection, d *AnyMessage) {
5353

5454
if r.Mode == room.EliminationMode {
5555
HandleDeath(r, target, p)
56-
// TODO: kick target and update br, coins, xp, etc
5756
break
5857
} else {
5958
target.Health = 100

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /