fixed a problem in prev commit msg somehow

This commit is contained in:
minjaesong
2017-06-01 15:20:01 +09:00
parent e8978b3a21
commit 3dae7b9d45

View File

@@ -585,11 +585,11 @@ open class ActorWithPhysics(renderOrder: RenderOrder, val immobileBody: Boolean
// ignore MOST of the codes below (it might be possible to recycle the structure??)
val sixteenStep = (0..ccdSteps).map { hitbox.clone().translate(vectorSum * (it / ccdSteps.toDouble())) }
val sixteenStep = (0..ccdSteps).map { hitbox.clone().translate(vectorSum * (it / ccdSteps.toDouble())) } // zeroth step is unused
val affectingTiles = ArrayList<BlockAddress>()
var collidingStep: Int? = null
for (step in 0..ccdSteps) {
for (step in 1..ccdSteps) {
val stepBox = sixteenStep[step]
forEachOccupyingTilePos(stepBox) {
val tileCoord = LandUtil.resolveBlockAddr(it)