Skip to content

Commit

Permalink
Fix bug that makes mastermind.s unplayable
Browse files Browse the repository at this point in the history
This is a regression not present in v1.5.

It seems to have been introduced by 43dd8a7.
Specifically double buffering System.out seems to hold things up. Simply
flushing constantly seems to fix it.
  • Loading branch information
TheThirdOne committed Feb 27, 2023
1 parent 5868f71 commit eab9540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rars/util/SystemIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public static void printString(String string) {
if (Globals.getGui() == null) {
try {
SystemIO.getOutputWriter().write(string);
SystemIO.getOutputWriter().flush();
} catch (IOException e){
}
} else {
Expand Down

0 comments on commit eab9540

Please sign in to comment.