Browse Source

refactoring: Fixed wasd+ctrl glitch causing crashes

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

8
src/main/java/pacmanGame/Program.java

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

Loading…
Cancel
Save