Fixed warnings generated by go vet
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user