rewrite of the stats system

This commit is contained in:
Fraser Graham
2014-01-16 00:02:59 -08:00
parent 90b7731865
commit 3fa53daadb
7 changed files with 46 additions and 14 deletions
+2
View File
@@ -234,6 +234,7 @@ func addPlayer(ws *websocket.Conn) {
Robots: []*Robot{},
send: make(chan Message),
ws: ws,
Id: idg.Hash(),
}
for name, stats := range conf.Stats {
@@ -251,6 +252,7 @@ func addPlayer(ws *websocket.Conn) {
}
game.register <- p
defer func() {
game.unregister <- p
}()