mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 22:19:03 -06:00
Holding a piece that would block you out now works
This commit is contained in:
parent
b22f671409
commit
1acd0ec65a
@ -167,6 +167,9 @@ function GameMode:update(inputs, ruleset)
|
||||
if self.enable_hold and inputs["hold"] == true and self.held == false and self.prev_inputs["hold"] == false then
|
||||
self:hold(inputs, ruleset)
|
||||
self.prev_inputs = inputs
|
||||
if not self.grid:canPlacePiece(self.piece) then
|
||||
self.game_over = true
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user