Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
killer_sokoban
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Schulcz Ferenc
killer_sokoban
Commits
6986c2dc
Commit
6986c2dc
authored
7 years ago
by
sfphoton
Browse files
Options
Downloads
Patches
Plain Diff
Resolved bug when parsemap would only read from the console.
parent
7df3adf7
Branches
Branches containing commit
Tags
Proto
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/killer_sokoban/Main.java
+5
-1
5 additions, 1 deletion
src/killer_sokoban/Main.java
with
5 additions
and
1 deletion
src/killer_sokoban/Main.java
+
5
−
1
View file @
6986c2dc
...
...
@@ -225,11 +225,13 @@ public class Main {
private
static
void
script
(
String
file
)
throws
IOException
{
BufferedReader
backup
=
br
;
//Maybe this works...
File
scriptFile
=
new
File
(
file
);
FileInputStream
fis
=
new
FileInputStream
(
scriptFile
);
InputStreamReader
isr
=
new
InputStreamReader
(
fis
);
BufferedReader
br
=
new
BufferedReader
(
isr
);
br
=
new
BufferedReader
(
isr
);
while
(
true
)
{
String
line
;
...
...
@@ -242,6 +244,8 @@ public class Main {
br
.
close
();
br
=
backup
;
}
//code copied from StackOverFlow
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment