[jasper/world] Clear object states when tiles are reset
This commit is contained in:
parent
2eba5a6882
commit
4520050bf9
@ -62,6 +62,7 @@ ox::Result<int> World::update() noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void World::setupTiles() noexcept {
|
void World::setupTiles() noexcept {
|
||||||
|
m_objStates.clear();
|
||||||
m_currentTicks = ticksMs(turbineCtx(m_nctx));
|
m_currentTicks = ticksMs(turbineCtx(m_nctx));
|
||||||
ncore::setBgStatus(m_nctx, 0); // disable all backgrounds
|
ncore::setBgStatus(m_nctx, 0); // disable all backgrounds
|
||||||
for (auto layerNo = 0u; auto const&layer : m_worldStatic.map) {
|
for (auto layerNo = 0u; auto const&layer : m_worldStatic.map) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user