correct go vet errors
This commit is contained in:
parent
bbfb2af4a9
commit
2d8b878f50
@ -171,5 +171,4 @@ func (c *Client) Play() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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])},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user