Fixed warnings generated by go vet

This commit is contained in:
sm
2014-04-14 00:39:42 -07:00
parent faacfe7fd9
commit 9e1cd272f7
6 changed files with 31 additions and 32 deletions
+3 -3
View File
@@ -32,8 +32,8 @@ type Robot struct {
Hit bool `json:"hit"`
Probe *v.Point2d `json:"probe"`
ProbeResult *Collision `json:"probe_result"`
gameStats *BotStats `json:-`
Delta float32 `json:-`
gameStats *BotStats `json:"-"`
Delta float32 `json:"-"`
idg *IdGenerator
}
@@ -491,7 +491,7 @@ func (r *Robot) reset(g *Game) {
// Check Obstacles
retry := false
for _, obj := range g.obstacles {
_, inside, _ := v.RectIntersection(obj.Bounds, r.Position, v.Vector2d{0, 0})
_, inside, _ := v.RectIntersection(obj.Bounds, r.Position, v.Vector2d{X: 0, Y: 0})
if inside {
retry = true
}