correct trail glitch

This commit is contained in:
adrienmalin 2019-01-01 04:33:54 +01:00
parent 37e342da30
commit 50821bbb8f

View File

@ -222,6 +222,7 @@ func line_clear():
func hold(): func hold():
if not current_piece_held: if not current_piece_held:
current_piece.emit_trail(false)
if held_piece: if held_piece:
var tmp = held_piece var tmp = held_piece
held_piece = current_piece held_piece = current_piece
@ -231,7 +232,6 @@ func hold():
else: else:
held_piece = current_piece held_piece = current_piece
new_piece() new_piece()
held_piece.emit_trail(false)
held_piece.translation = HOLD_POSITION held_piece.translation = HOLD_POSITION
current_piece_held = true current_piece_held = true