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 err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ func main() {
|
|||||||
var err error
|
var err error
|
||||||
err = c.Negociate()
|
err = c.Negociate()
|
||||||
if err != nil {
|
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(
|
c.Player = client.NewSimplePlayer(
|
||||||
|
@ -164,8 +164,8 @@ func (mo MiniObstacle) String() string {
|
|||||||
func (mo *MiniObstacle) ToObstacle() server.Obstacle {
|
func (mo *MiniObstacle) ToObstacle() server.Obstacle {
|
||||||
return server.Obstacle{
|
return server.Obstacle{
|
||||||
Bounds: vector.AABB2d{
|
Bounds: vector.AABB2d{
|
||||||
A: vector.Point2d{float32(mo[0]), float32(mo[1])},
|
A: vector.Point2d{X: float32(mo[0]), Y: float32(mo[1])},
|
||||||
B: vector.Point2d{float32(mo[2]), float32(mo[3])},
|
B: vector.Point2d{X: float32(mo[2]), Y: float32(mo[3])},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user