From 32981785fd2a0fbd3566bd4e3fdfd91abd1bd060 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 7 Feb 2021 15:01:49 -0800 Subject: [PATCH] AGS: Don't show interface_click error dialog on exit --- engines/ags/engine/main/quit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/ags/engine/main/quit.cpp b/engines/ags/engine/main/quit.cpp index 6d83fb3338d..bfb18c5471a 100644 --- a/engines/ags/engine/main/quit.cpp +++ b/engines/ags/engine/main/quit.cpp @@ -226,8 +226,10 @@ void allegro_bitmap_test_release() { // error. // "!|" is a special code used to mean that the player has aborted (Alt+X) void quit(const char *quitmsg) { - strncpy(_G(quit_message), quitmsg, 256); - _G(abort_engine) = true; + if (!_G(abort_engine)) { + strncpy(_G(quit_message), quitmsg, 256); + _G(abort_engine) = true; + } } void quit_free() {