correct go vet errors

This commit is contained in:
Stephen McQuay 2014-04-23 14:58:22 -07:00
parent bbfb2af4a9
commit 2d8b878f50
3 changed files with 3 additions and 4 deletions

View File

@ -171,5 +171,4 @@ func (c *Client) Play() error {
return err
}
}
return nil
}

View File

@ -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(

View File

@ -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])},
},
}
}