Split readMaxMapDataSize, move mapDimensionsValid to project

This commit is contained in:
GriffinR
2020-05-16 18:52:46 -04:00
committed by huderlem
parent 731fbce6af
commit 374020f94d
5 changed files with 22 additions and 12 deletions

View File

@@ -701,6 +701,7 @@ bool MainWindow::loadDataStructures() {
&& project->readTrainerTypes()
&& project->readMetatileBehaviors()
&& project->readTilesetProperties()
&& project->readMaxMapDataSize()
&& project->readHealLocations()
&& project->readMiscellaneousConstants()
&& project->readSpeciesIconPaths()
@@ -2351,10 +2352,6 @@ void MainWindow::on_pushButton_ChangeDimensions_clicked()
}
}
bool MainWindow::mapDimensionsValid(int width, int height) {
return editor->project->getMapDataSize(width, height) <= editor->project->getMaxMapDataSize();
}
void MainWindow::on_checkBox_smartPaths_stateChanged(int selected)
{
bool enabled = selected == Qt::Checked;