Stop spawning rovers outside the chunks or warping into other rovers

This commit is contained in:
Marc Di Luzio 2020-06-08 23:46:56 +01:00
parent ae2cb6598a
commit 520f78b5c3
3 changed files with 24 additions and 14 deletions

View file

@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"io/ioutil"
"math"
"os"
"path"
@ -175,13 +174,7 @@ func InnerMain(command string) error {
} else {
// Print out the radar
num := int(math.Sqrt(float64(len(response.Tiles))))
for j := num - 1; j >= 0; j-- {
for i := 0; i < num; i++ {
fmt.Printf("%d", response.Tiles[i+num*j])
}
fmt.Print("\n")
}
game.PrintTiles(response.Tiles)
}
case "rover":