float32 -> float64
This commit is contained in:
+4
-4
@@ -71,8 +71,8 @@ func (config ClientConfig) Valid(max int) bool {
|
||||
|
||||
// BoardSize is the response containing the geometry of the requested game.
|
||||
type BoardSize struct {
|
||||
Width float32 `json:"width"`
|
||||
Height float32 `json:"height"`
|
||||
Width float64 `json:"width"`
|
||||
Height float64 `json:"height"`
|
||||
}
|
||||
|
||||
// GameParam is sent to the client to tell them of the geometry of the game
|
||||
@@ -175,8 +175,8 @@ func (c *Controller) AddPlayer(ws *websocket.Conn) {
|
||||
var err error
|
||||
game, err = NewGame(
|
||||
gid.Id,
|
||||
float32(c.Conf.Width),
|
||||
float32(c.Conf.Height),
|
||||
float64(c.Conf.Width),
|
||||
float64(c.Conf.Height),
|
||||
c.Conf.ObstacleCount,
|
||||
c.Conf.Tick,
|
||||
c.Conf.MaxPoints,
|
||||
|
||||
Reference in New Issue
Block a user