diff --git a/mapeditor/mainwindow.cpp b/mapeditor/mainwindow.cpp index 333bcfcea..2dc194a0e 100644 --- a/mapeditor/mainwindow.cpp +++ b/mapeditor/mainwindow.cpp @@ -992,7 +992,7 @@ void MainWindow::onSelectionMade(int level, bool anythingSelected) { if (level == mapLevel) { - auto info = QString::asprintf("Selection on layer %s: %s", level, anythingSelected ? "true" : "false"); + auto info = QString::asprintf("Selection on layer %d: %b", level, anythingSelected ? "true" : "false"); setStatusMessage(info); ui->actionErase->setEnabled(anythingSelected); diff --git a/mapeditor/windownewmap.cpp b/mapeditor/windownewmap.cpp index 5cb36c466..94f3c7cfb 100644 --- a/mapeditor/windownewmap.cpp +++ b/mapeditor/windownewmap.cpp @@ -32,8 +32,6 @@ WindowNewMap::WindowNewMap(QWidget *parent) : mapGenOptions.setHeight(ui->heightTxt->text().toInt()); bool twoLevel = ui->twoLevelCheck->isChecked(); mapGenOptions.setHasTwoLevels(twoLevel); - mapGenOptions.setPlayerCount(ui->humanCombo->currentText().toInt()); - mapGenOptions.setCompOnlyPlayerCount(ui->cpuCombo->currentText().toInt()); updateTemplateList(); loadLastTemplate(); @@ -132,10 +130,6 @@ void WindowNewMap::loadLastTemplate() ui->templateCombo->setCurrentIndex(index); on_templateCombo_activated(index); } - else - { - QMessageBox::critical(this, "", "Failed to load template name"); - } } void WindowNewMap::saveUserSettings()