Fix tests after rover change
This commit is contained in:
parent
f0f5a6b2e0
commit
93b99b7989
4 changed files with 23 additions and 7 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue