code cleanup related to ActorWithPhysics

This commit is contained in:
minjaesong
2017-05-10 21:02:05 +09:00
parent 57419a9a24
commit 4f52a4d09b
6 changed files with 15 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ open class ProjectileSimple(
override fun update(gc: GameContainer, delta: Int) {
// hit something and despawn
lifetimeCounter += delta
if (ccdCollided || grounded || lifetimeCounter >= lifetimeMax ||
if (grounded || lifetimeCounter >= lifetimeMax || // ccdCollided ||
// stuck check
BlockCodex[Terrarum.ingame!!.world.getTileFromTerrain(feetPosTile[0], feetPosTile[1]) ?: Block.STONE].isSolid
) {