From 9de2b51f467a6fc93f136c8f02567007819cfab3 Mon Sep 17 00:00:00 2001 From: Fraser Graham Date: Fri, 8 Nov 2013 22:59:56 -0800 Subject: [PATCH] fixed naming --- protocol.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol.go b/protocol.go index 0f7a0cd..a6874e4 100644 --- a/protocol.go +++ b/protocol.go @@ -197,11 +197,11 @@ func addPlayer(ws *websocket.Conn) { ws: ws, } - for _, stats := range conf.Stats { + for name, stats := range conf.Stats { r := Robot{ Stats: DeriveStats(stats), Id: idg.Hash(), - Name: clientid.Name, + Name: name, Health: 10, Scanners: make([]Scanner, 0)} r.Health = r.Stats.Hp