float32 -> float64
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user