mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 13:49:02 -06:00
Minor piece bottom SFX fix
This commit is contained in:
parent
3f8d68cc9d
commit
fa97216167
@ -112,8 +112,14 @@ function Ruleset:rotatePiece(inputs, piece, grid, prev_inputs, initial)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local was_drop_blocked = piece:isDropBlocked(grid)
|
||||||
|
|
||||||
self:attemptRotate(new_inputs, piece, grid, initial)
|
self:attemptRotate(new_inputs, piece, grid, initial)
|
||||||
|
|
||||||
|
if not was_drop_blocked and piece:isDropBlocked(grid) then
|
||||||
|
playSE("bottom")
|
||||||
|
end
|
||||||
|
|
||||||
-- prev_inputs becomes the previous inputs
|
-- prev_inputs becomes the previous inputs
|
||||||
for input, value in pairs(inputs) do
|
for input, value in pairs(inputs) do
|
||||||
prev_inputs[input] = inputs[input]
|
prev_inputs[input] = inputs[input]
|
||||||
|
Loading…
Reference in New Issue
Block a user