moving vertically also if block not fit game field on swap

This commit is contained in:
Anton Lysakov
2019-03-29 22:54:27 +07:00
parent a3bbaaef9b
commit 7af8e1eda5

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);