From 2e774285ba8656efa0d369b81a2911e4391034c6 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Wed, 13 Nov 2013 23:47:42 -0800 Subject: [PATCH] quieted things down slightly (logging) --- protocol.go | 2 +- robot.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/protocol.go b/protocol.go index 00c6b8d..985701a 100644 --- a/protocol.go +++ b/protocol.go @@ -250,7 +250,7 @@ func addPlayer(ws *websocket.Conn) { Heading: v.Vector2d{1, 0}, Scanners: make([]Scanner, 0)} r.Health = r.Stats.Hp - log.Printf("Adding Robot: %v", r) + log.Printf("Adding Robot: %+v", r) r.reset(game) p.Robots = append(p.Robots, &r) } diff --git a/robot.go b/robot.go index 189222a..42c6d6f 100644 --- a/robot.go +++ b/robot.go @@ -381,8 +381,6 @@ func (r *Robot) reset(g *game) { r.Position = start_pos r.Health = r.Stats.Hp - log.Printf("Reset %v", r) - // Check Obstacles retry := false for _, obj := range g.obstacles {