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:
@@ -296,6 +296,7 @@ static void tg_hold(struct games_state *rs,tetris_game *obj)
|
|||||||
obj->stored.ori = ori;
|
obj->stored.ori = ori;
|
||||||
while (!tg_fits(obj, obj->falling)) {
|
while (!tg_fits(obj, obj->falling)) {
|
||||||
obj->falling.loc.row--;
|
obj->falling.loc.row--;
|
||||||
|
obj->falling.loc.col--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tg_put(obj, obj->falling);
|
tg_put(obj, obj->falling);
|
||||||
|
|||||||
Reference in New Issue
Block a user