[jasper/world] Give world static a default obj ref set
All checks were successful
Build / build (push) Successful in 3m42s
All checks were successful
Build / build (push) Successful in 3m42s
This commit is contained in:
parent
58b0254ff5
commit
c774b5da70
@ -32,7 +32,8 @@ ox::Error World::setupDisplay() noexcept {
|
||||
OX_RETURN_ERROR(ncore::loadBgPalette(m_nctx, i, palAddr));
|
||||
++i;
|
||||
}
|
||||
for (auto const&rs : m_worldStatic.objTileRefSets) {
|
||||
for (size_t i = 1; i < m_worldStatic.objTileRefSets.size(); ++i) {
|
||||
auto const&rs = m_worldStatic.objTileRefSets[i];
|
||||
OX_RETURN_ERROR(ncore::loadBgTileSheet(
|
||||
m_nctx,
|
||||
rs.cbb,
|
||||
|
@ -92,7 +92,18 @@ void WorldStaticLoader::loadTile(TileStatic &dst, TileDoc const&src) noexcept {
|
||||
}
|
||||
|
||||
void WorldStaticLoader::reset() {
|
||||
m_worldStatic = {};
|
||||
m_worldStatic = {
|
||||
.objTileRefSets{
|
||||
ObjTileRefSet{
|
||||
.cbb = 0,
|
||||
},
|
||||
},
|
||||
.tilesheets{},
|
||||
.palettes{},
|
||||
.columns{},
|
||||
.rows{},
|
||||
.map{},
|
||||
};
|
||||
m_cache.clear();
|
||||
m_objSets.clear();
|
||||
m_cbbIt = 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user