obstacle support

This commit is contained in:
Fraser Graham
2013-10-25 22:30:15 -07:00
parent de68ec2e7b
commit 14f6c65e86
6 changed files with 83 additions and 12 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func addPlayer(ws *websocket.Conn) {
send: make(chan *Boardstate),
ws: ws,
}
p.reset()
p.reset(game)
game.register <- p
defer func() {
game.unregister <- p