Disable respawn editing for pokeemerald/pokeruby

This commit is contained in:
GriffinR 2020-03-20 13:52:30 -04:00
parent 20b112de52
commit 8137abd656

View file

@ -1493,8 +1493,10 @@ void MainWindow::updateSelectedObjects() {
// Hide elevation so users don't get impression that editing it is meaningful.
frame->ui->spinBox_z->setVisible(false);
frame->ui->label_z->setVisible(false);
fields << "respawn_map";
fields << "respawn_npc";
if (projectConfig.getBaseGameVersion() == BaseGameVersion::pokefirered) {
fields << "respawn_map";
fields << "respawn_npc";
}
}
// Some keys shouldn't use a combobox