examples/blocks: Bug fix: moving piece never landed (#178)

This commit is contained in:
Hajime Hoshi 2016-04-03 04:27:18 +09:00
parent 8dc3c2fb70
commit 65a8d4013a

View File

@ -311,9 +311,7 @@ func (s *GameScene) Update(state *GameState) error {
}
}
if moved {
s.landingCount = 0
} else if !s.field.Flushing() && !s.field.PieceDroppable(piece, s.currentPieceX, s.currentPieceY, angle) {
if !s.field.Flushing() && !s.field.PieceDroppable(piece, s.currentPieceX, s.currentPieceY, angle) {
if 0 < state.Input.StateForDown() {
s.landingCount += 10
} else {