minor cleanup
- removed comment-disabled code - reduced verbosity in protocol logging
This commit is contained in:
@@ -98,15 +98,11 @@ func addPlayer(ws *websocket.Conn) {
|
||||
log.Println("problem parsing the requested game id")
|
||||
return
|
||||
}
|
||||
log.Printf("requested game id: %+v", gid)
|
||||
|
||||
game := games.get(gid.Id)
|
||||
log.Printf("found game: %p", game)
|
||||
if game == nil {
|
||||
log.Println("game was nil")
|
||||
force := *debug
|
||||
if force {
|
||||
log.Println("forcing game start")
|
||||
game = NewGame(gid.Id, float32(*width), float32(*height))
|
||||
go game.run()
|
||||
games.add(game)
|
||||
@@ -140,7 +136,6 @@ func addPlayer(ws *websocket.Conn) {
|
||||
)
|
||||
return
|
||||
}
|
||||
log.Printf("%s: %s clientid: %+v", gid.Id, player_id, clientid)
|
||||
|
||||
gameParam := NewGameParam(game.width, game.height)
|
||||
err = websocket.JSON.Send(ws, gameParam)
|
||||
@@ -149,7 +144,6 @@ func addPlayer(ws *websocket.Conn) {
|
||||
websocket.JSON.Send(ws, NewFailure("game param parse error"))
|
||||
return
|
||||
}
|
||||
log.Printf("gameparam: %+v", gameParam)
|
||||
|
||||
switch clientid.Type {
|
||||
case "robot":
|
||||
|
||||
Reference in New Issue
Block a user