Convert objects and tiles to base ints

This commit is contained in:
Marc Di Luzio 2020-07-19 11:54:11 +01:00
parent acdd019093
commit f665436007
3 changed files with 9 additions and 9 deletions

View file

@ -128,7 +128,7 @@ func (a *chunkBasedAtlas) populate(chunk int) {
obj = ObjectSmallRock
}
if obj != ObjectNone {
c.Objects[j*a.ChunkSize+i] = Object{Type: obj}
c.Objects[j*a.ChunkSize+i] = Object{Type: ObjectType(obj)}
}
}
}