From 2d8b878f50ce69a6e7dca2b00c4a2cde87e742ea Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Wed, 23 Apr 2014 14:58:22 -0700 Subject: [PATCH] correct go vet errors --- client.go | 1 - gobot/main.go | 2 +- player.go | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index 95f18f6..e63401f 100644 --- a/client.go +++ b/client.go @@ -171,5 +171,4 @@ func (c *Client) Play() error { return err } } - return nil } diff --git a/gobot/main.go b/gobot/main.go index 2844fac..4a37936 100644 --- a/gobot/main.go +++ b/gobot/main.go @@ -62,7 +62,7 @@ func main() { var err error err = c.Negociate() if err != nil { - log.Fatal("%s: failed to negociate: %s", c.Name, err) + log.Fatalf("%s: failed to negociate: %s", c.Name, err) } c.Player = client.NewSimplePlayer( diff --git a/player.go b/player.go index 44882d4..8c80d22 100644 --- a/player.go +++ b/player.go @@ -164,8 +164,8 @@ func (mo MiniObstacle) String() string { func (mo *MiniObstacle) ToObstacle() server.Obstacle { return server.Obstacle{ Bounds: vector.AABB2d{ - A: vector.Point2d{float32(mo[0]), float32(mo[1])}, - B: vector.Point2d{float32(mo[2]), float32(mo[3])}, + A: vector.Point2d{X: float32(mo[0]), Y: float32(mo[1])}, + B: vector.Point2d{X: float32(mo[2]), Y: float32(mo[3])}, }, } }