some clean up

Mainly adding some comments, and some function renaming
This commit is contained in:
sm
2013-09-28 12:59:17 -07:00
parent c5bddcdc31
commit 56c965add7
6 changed files with 47 additions and 38 deletions
-2
View File
@@ -92,7 +92,6 @@ func NewFailure(reason string) *Failure {
}
func addPlayer(ws *websocket.Conn) {
// route to appropriate game ...
var gid GameID
err := websocket.JSON.Receive(ws, &gid)
if err != nil {
@@ -184,7 +183,6 @@ func addPlayer(ws *websocket.Conn) {
p.recv()
log.Printf("game %s: player %v has been disconnected from this game\n", gid.Id, p.Robot.Id)
case "spectator":
//return nil, nil
s := &Spectator{
send: make(chan *Boardstate),
ws: ws,