Skip to content

Commit

Permalink
PPT: Restore Inputs on game start
Browse files Browse the repository at this point in the history
  • Loading branch information
mat1jaczyyy committed Jan 7, 2022
1 parent c967636 commit 956c82a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Zetris.PPT/PPTBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ void runLogic() {

useEngineFrames();
refreshEngineTimeout();

RestoreManual();
}

current = GameHelper.Instance.getCurrentPiece.Call(playerID);
Expand Down Expand Up @@ -730,7 +732,7 @@ public void RestoreManual() {

doingManualInput = false;

Dispatcher.CurrentDispatcher.Invoke(() => {
Window?.Dispatcher.InvokeAsync(() => {
if (_btn != null) _btn.MaxHeight = 0;
});
}
Expand Down

0 comments on commit 956c82a

Please sign in to comment.