diff --git a/pon2.nimble b/pon2.nimble index ac7f341..2545d12 100644 --- a/pon2.nimble +++ b/pon2.nimble @@ -1,6 +1,6 @@ # Package -version = "0.13.1" +version = "0.13.2" author = "Keisuke Izumiya" description = "Puyo Puyo and Nazo Puyo Application" license = "Apache-2.0" diff --git a/src/pon2pkg/private/app/simulator/common.nim b/src/pon2pkg/private/app/simulator/common.nim index 5084c0e..938e113 100644 --- a/src/pon2pkg/private/app/simulator/common.nim +++ b/src/pon2pkg/private/app/simulator/common.nim @@ -119,7 +119,7 @@ func nextPairCell*( func immediateNextPairCell*(simulator: Simulator, axis: bool): Cell {.inline.} = ## Returns the next-pair's cell in the immediate pairs. simulator.nazoPuyoWrap.get: - let nextIdx = wrappedNazoPuyo.puyoPuyo.nextIndex + let nextIdx = wrappedNazoPuyo.puyoPuyo.nextIndex.succ if nextIdx >= wrappedNazoPuyo.puyoPuyo.pairsPositions.len: return Cell.None @@ -129,7 +129,7 @@ func immediateNextPairCell*(simulator: Simulator, axis: bool): Cell {.inline.} = func immediateDoubleNextPairCell*(simulator: Simulator, axis: bool): Cell {.inline.} = ## Returns the double-next-pair's cell in the immediate pairs. simulator.nazoPuyoWrap.get: - let doubleNextIdx = wrappedNazoPuyo.puyoPuyo.nextIndex.succ + let doubleNextIdx = wrappedNazoPuyo.puyoPuyo.nextIndex.succ 2 if doubleNextIdx >= wrappedNazoPuyo.puyoPuyo.pairsPositions.len: return Cell.None