Permalink
Browse files

replace %LevelFile with %MapFile in the level editor

  • Loading branch information...
red031000 committed Sep 18, 2018
1 parent 8f31878 commit 37a4cfdfa5a2d46b69f40c6b4d595213716ac5fd
Showing with 4 additions and 2 deletions.
  1. +4 −2 LevelEdit/src/com/corsixth/leveledit/ReaderWriter.java
@@ -51,6 +51,8 @@ public void open(File file) {
while ((line = read.readLine()) != null) {
if (line.startsWith("%Name"))
readFromFile(line, "name");
else if (line.startsWith("%MapFile"))
readFromFile(line, "mapFile");
else if (line.startsWith("%LevelFile"))
readFromFile(line, "mapFile");
else if (line.startsWith("%LevelBriefing"))
@@ -194,7 +196,7 @@ public void saveAs(File file) {
write.write("- Name: What the level should be called (within quotes)");
write.newLine();
write.newLine();
write.write("- LevelFile: The name of the binary map file to load. ");
write.write("- MapFile: The name of the binary map file to load. ");
write.write("First the Levels directory of the original game will be "
+ "searched, and then the Levels directory of CorsixTH.");
write.newLine();
@@ -214,7 +216,7 @@ public void saveAs(File file) {
write.write("%Name = \"" + (TabGeneral.name) + "\"");
write.newLine();
write.write("%LevelFile = \"" + (TabGeneral.mapFile) + "\"");
write.write("%MapFile = \"" + (TabGeneral.mapFile) + "\"");
write.newLine();
write.write("%LevelBriefing = \"" + (TabGeneral.briefing)

0 comments on commit 37a4cfd

Please sign in to comment.