float32 -> float64

This commit is contained in:
sm
2014-04-26 15:36:04 -07:00
parent db28bfea11
commit 8f7ef5aa1a
8 changed files with 83 additions and 82 deletions
+4 -4
View File
@@ -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,