From bc2d1cdd5282337bd64615712a1031468f5f54fd Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sat, 9 Nov 2013 21:46:49 -0800 Subject: [PATCH] minor tweaks, including go fmt --- robot.go | 2 +- splosion.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/robot.go b/robot.go index aaa8860..94adadd 100644 --- a/robot.go +++ b/robot.go @@ -283,7 +283,7 @@ func (r *Robot) Tick(g *game) { } } - // We only self repair when we're stopped + // We are only allowed to scan when we're stopped if math.Abs(float64(r.Speed)) < v.Epsilon && r.ActiveScan { r.ScanCounter += delta * float32(r.Stats.ScannerRadius) * 0.1 } else if r.ScanCounter > 0 { diff --git a/splosion.go b/splosion.go index 746c921..612f8af 100644 --- a/splosion.go +++ b/splosion.go @@ -5,10 +5,10 @@ import ( ) type Splosion struct { - Id string `json:"id"` - Position v.Point2d `json:"position"` - Radius int `json:"radius"` - Lifespan int `json:"-"` + Id string `json:"id"` + Position v.Point2d `json:"position"` + Radius int `json:"radius"` + Lifespan int `json:"-"` } func (s *Splosion) Tick() {