fixed naming

This commit is contained in:
Fraser Graham 2013-11-08 22:59:56 -08:00
parent 34f5d6876d
commit 9de2b51f46

View File

@ -197,11 +197,11 @@ func addPlayer(ws *websocket.Conn) {
ws: ws, ws: ws,
} }
for _, stats := range conf.Stats { for name, stats := range conf.Stats {
r := Robot{ r := Robot{
Stats: DeriveStats(stats), Stats: DeriveStats(stats),
Id: idg.Hash(), Id: idg.Hash(),
Name: clientid.Name, Name: name,
Health: 10, Health: 10,
Scanners: make([]Scanner, 0)} Scanners: make([]Scanner, 0)}
r.Health = r.Stats.Hp r.Health = r.Stats.Hp