From 971b42856a14c5775da483b619b1a5b79fb81df1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 14 May 2016 03:29:45 +0900 Subject: [PATCH] examples/blocks: Remove redundant code --- examples/blocks/blocks/gamescene.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/blocks/blocks/gamescene.go b/examples/blocks/blocks/gamescene.go index 6e06f910c..15e3b8133 100644 --- a/examples/blocks/blocks/gamescene.go +++ b/examples/blocks/blocks/gamescene.go @@ -299,14 +299,12 @@ func (s *GameScene) Update(state *GameState) error { // Drop the current piece with gravity. if !s.field.Flushing() { - y := s.currentPieceY angle := s.currentPieceAngle s.currentPieceYCarry += 2*s.level() + 1 const maxCarry = 60 for maxCarry <= s.currentPieceYCarry { s.currentPieceYCarry -= maxCarry s.currentPieceY = s.field.DropPiece(piece, s.currentPieceX, s.currentPieceY, angle) - moved = y != s.currentPieceY } }