mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 08:19:02 -06:00
Instant ARR fix on grids not 10-wide
This commit is contained in:
parent
8e7a5418dc
commit
450833b246
@ -166,9 +166,9 @@ function Ruleset:movePiece(piece, grid, move, instant)
|
||||
elseif move == "right" then
|
||||
piece:moveInGrid({x=1, y=0}, 1, grid, false)
|
||||
elseif move == "speedleft" then
|
||||
piece:moveInGrid({x=-1, y=0}, 10, grid, instant)
|
||||
piece:moveInGrid({x=-1, y=0}, grid.width, grid, instant)
|
||||
elseif move == "speedright" then
|
||||
piece:moveInGrid({x=1, y=0}, 10, grid, instant)
|
||||
piece:moveInGrid({x=1, y=0}, grid.width, grid, instant)
|
||||
end
|
||||
if piece.position.x ~= x then
|
||||
self:onPieceMove(piece, grid)
|
||||
|
Loading…
Reference in New Issue
Block a user