From 543196d99e7c1e642828365b7e89ba0e2b7ffe64 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sat, 14 Nov 2026 12:03:10 +0100 Subject: [PATCH] Reject running games without any rooms --- src/editor/mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/editor/mainwindow.cpp b/src/editor/mainwindow.cpp index 13f9974..6cd50c5 100644 --- a/src/editor/mainwindow.cpp +++ b/src/editor/mainwindow.cpp @@ -820,6 +820,13 @@ void MainWindow::showIncludedFiles() void MainWindow::runGame() { + if (m_project.rooms.empty()) + { + QMessageBox::information(this, tr("No room to play"), + tr("Create a room before running the game.")); + return; + } + GameEngine engine{m_project}; setEnabled(false);