Merge pull request #1365 from tonymorony/jl777

moving block from buffer horizontally if it not fit game field on swap
This commit is contained in:
jl777
2019-03-29 05:19:14 -11:00
committed by GitHub

View File

@@ -296,6 +296,7 @@ static void tg_hold(struct games_state *rs,tetris_game *obj)
obj->stored.ori = ori;
while (!tg_fits(obj, obj->falling)) {
obj->falling.loc.row--;
obj->falling.loc.col--;
}
}
tg_put(obj, obj->falling);