Skip to content

Commit

Permalink
Deobfuscate some code in GamePlayerInfoPanel
Browse files Browse the repository at this point in the history
No functional changes. This is in preparation of playing win/lose sounds
at the end of a multiplayer game.
  • Loading branch information
StenAL committed Apr 28, 2023
1 parent 1d797ed commit 27d27e3
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 107 deletions.
6 changes: 3 additions & 3 deletions client/src/main/java/agolf/game/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ else if(args[1].equals("end")) {
int[] gameOutcome = new int[len];
boolean[] isWinner = new boolean[len];

for (int var1 = 0; var1 < len; ++var1) {
gameOutcome[var1] = Integer.parseInt(args[2 + var1]);
isWinner[var1] = gameOutcome[var1] == 1;
for (int i = 0; i < len; ++i) {
gameOutcome[i] = Integer.parseInt(args[2 + i]);
isWinner[i] = gameOutcome[i] == 1;
}

this.gamePlayerInfoPanel.setGameOutcome(gameOutcome);
Expand Down
Loading

0 comments on commit 27d27e3

Please sign in to comment.