correct go vet errors
This commit is contained in:
@@ -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])},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user