fixture ghost is working again

This commit is contained in:
minjaesong
2022-02-07 11:13:31 +09:00
parent 24d6634257
commit e64bd5d389
5 changed files with 13 additions and 5 deletions

View File

@@ -160,8 +160,8 @@ open class IngameInstance(val batch: SpriteBatch, val isMultiplayer: Boolean = f
// add blockmarking_actor into the actorlist
(CommonResourcePool.get("blockmarking_actor") as BlockMarkerActor).let {
it.isVisible = false // make sure the actor is invisible on new instance
if (actorContainerActive.searchFor(it.referenceID) { it.referenceID } != null) actorContainerActive.add(it)
forceRemoveActor(it)
forceAddActor(it)
}
gameInitialised = true
@@ -191,6 +191,8 @@ open class IngameInstance(val batch: SpriteBatch, val isMultiplayer: Boolean = f
printdbg(this, "dispose called by")
printStackTrace(this)
blockMarkingActor.isVisible = false
actorContainerActive.forEach { it.dispose() }
actorContainerInactive.forEach { it.dispose() }
world.dispose()