Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed landscape starting bug. #19

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ else if((numberOfColumns == 12) && (numberOfRows == 19) && (numberOfBombs == 46)
}
}

if (param == null && !savecheck && landscape) {
int save = numberOfColumns;
numberOfColumns = numberOfRows;
numberOfRows = save;
}

//Creating the right sized the PlayingField
numberOfCells = numberOfRows * numberOfColumns;
data = new int[numberOfRows][numberOfColumns];
Expand Down Expand Up @@ -249,11 +255,6 @@ else if((numberOfColumns == 12) && (numberOfRows == 19) && (numberOfBombs == 46)
savecheck = true;
savedinstancestate = true;
}
if (numberOfRows < numberOfColumns) {
int save = numberOfColumns;
numberOfColumns = numberOfRows;
numberOfRows = save;
}
}

//parce the Content and Status String if this is loading a saved game
Expand Down