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
+3 -3
View File
@@ -62,7 +62,7 @@ func (c *Controller) StartGame(w http.ResponseWriter, req *http.Request) {
log.Println("asked to create a game")
requested_game_name := c.Idg.Hash()
width, height := float32(c.Conf.Width), float32(c.Conf.Height)
width, height := float64(c.Conf.Width), float64(c.Conf.Height)
obstacleCount := 0
maxPoints := c.Conf.MaxPoints
mode := "deathmatch"
@@ -87,8 +87,8 @@ func (c *Controller) StartGame(w http.ResponseWriter, req *http.Request) {
return
}
requested_game_name = cfg.Name
width = float32(cfg.Width)
height = float32(cfg.Height)
width = float64(cfg.Width)
height = float64(cfg.Height)
obstacleCount = cfg.ObstacleCount
maxPoints = cfg.MaxPoints
mode = cfg.Mode