neater
This commit is contained in:
parent
83a95ed1c1
commit
bcad4fcb73
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -48,10 +48,10 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
tiles := make([][]engine.Tile, len(staticTiles))
|
tiles := make([][]engine.Tile, len(staticTiles))
|
||||||
for j := range staticTiles {
|
for j, row := range staticTiles {
|
||||||
tiles[j] = make([]engine.Tile, len(staticTiles[j]))
|
tiles[j] = make([]engine.Tile, len(row))
|
||||||
for i := range staticTiles[j] {
|
for i, t := range row {
|
||||||
tiles[j][i] = staticTiles[j][i]
|
tiles[j][i] = t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue