Browse Source

refactoring: Fixed wasd+ctrl glitch causing crashes

remotes/origin/visualizer
fdai7753 11 months ago
parent
commit
ab542720b7
  1. 2
      src/main/java/pacmanGame/Program.java

2
src/main/java/pacmanGame/Program.java

@ -42,9 +42,11 @@ public class Program {
} }
public void ForwardInputToGameManager() { public void ForwardInputToGameManager() {
try {
for (char inputChar : input.inputList) { for (char inputChar : input.inputList) {
gameManager.ProcessInput(inputChar); gameManager.ProcessInput(inputChar);
} }
} catch (Exception e) {}
input.inputList.clear(); input.inputList.clear();
} }

Loading…
Cancel
Save