Fix tests after rover change

This commit is contained in:
Marc Di Luzio 2020-06-25 23:51:31 +01:00
parent f0f5a6b2e0
commit 93b99b7989
4 changed files with 23 additions and 7 deletions

View file

@ -42,8 +42,12 @@ func NewAtlas(size, chunkSize int) Atlas {
// Initialise all the chunks
for i := range a.Chunks {
tiles := make([]byte, chunkSize*chunkSize)
for i := 0; i < len(tiles); i++ {
tiles[i] = TileEmpty
}
a.Chunks[i] = Chunk{
Tiles: make([]byte, chunkSize*chunkSize),
Tiles: tiles,
}
}