[jasper/world] Allow world to load without palettes
This commit is contained in:
parent
fe14e0a586
commit
7dfbfc834b
@ -42,9 +42,6 @@ ox::Error World::setupDisplay() noexcept {
|
|||||||
m_tilesheets.emplace_back(std::move(ts));
|
m_tilesheets.emplace_back(std::move(ts));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (m_worldStatic.palettes.empty()) {
|
|
||||||
return ox::Error{1, "World has no palettes"};
|
|
||||||
}
|
|
||||||
for (auto i = 0u; auto const&palAddr : m_worldStatic.palettes) {
|
for (auto i = 0u; auto const&palAddr : m_worldStatic.palettes) {
|
||||||
OX_RETURN_ERROR(ncore::loadBgPalette(m_nctx, i, palAddr));
|
OX_RETURN_ERROR(ncore::loadBgPalette(m_nctx, i, palAddr));
|
||||||
++i;
|
++i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user