actorwbmovable: alias vars are latched to its update; sprite that's out of screen won't render

This commit is contained in:
minjaesong
2019-02-20 15:38:18 +09:00
parent 0984b65d65
commit c9ac844e75
3 changed files with 89 additions and 36 deletions

View File

@@ -75,7 +75,7 @@ open class ProjectileSimple(
lifetimeCounter += delta
if (walledTop || walledBottom || walledRight || walledLeft || lifetimeCounter >= lifetimeMax ||
// stuck check
BlockCodex[(Terrarum.ingame!!.world).getTileFromTerrain(feetPosTile[0], feetPosTile[1]) ?: Block.STONE].isSolid
BlockCodex[(Terrarum.ingame!!.world).getTileFromTerrain(feetPosTile.x, feetPosTile.y) ?: Block.STONE].isSolid
) {
flagDespawn()
}