Convert objects and tiles to base ints
This commit is contained in:
parent
acdd019093
commit
f665436007
3 changed files with 9 additions and 9 deletions
|
@ -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)}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue