mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:49:02 -06:00
Condensed ARE canceling code a bit
This commit is contained in:
parent
90f62cb7dd
commit
8008315994
@ -314,14 +314,8 @@ end
|
|||||||
|
|
||||||
function GameMode:areCancel(inputs, ruleset)
|
function GameMode:areCancel(inputs, ruleset)
|
||||||
if ruleset.are_cancel and self.piece_hard_dropped and
|
if ruleset.are_cancel and self.piece_hard_dropped and
|
||||||
(self.move == "none" and not self.prev_inputs["up"] and
|
not self.prev_inputs.up and
|
||||||
not self.prev_inputs["rotate_left"] and not self.prev_inputs["rotate_left2"] and
|
strTrueValues(inputs) ~= "" then
|
||||||
not self.prev_inputs["rotate_right"] and not self.prev_inputs["rotate_right2"] and
|
|
||||||
not self.prev_inputs["rotate_180"]) and
|
|
||||||
(inputs["left"] or inputs["right"] or inputs["up"] or
|
|
||||||
inputs["rotate_left"] or inputs["rotate_left2"] or
|
|
||||||
inputs["rotate_right"] or inputs["rotate_right2"] or
|
|
||||||
inputs["rotate_180"]) then
|
|
||||||
self.lcd = 0
|
self.lcd = 0
|
||||||
self.are = 0
|
self.are = 0
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user