From 9559dab6a221143b34b1c1aeab08ff5454aa856e Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 23 Jan 2023 19:17:35 +0000 Subject: [PATCH] Add an explicit error for attempting to generate a preliminary minimap while the automap is open. --- src/m_misc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/m_misc.c b/src/m_misc.c index 21cc1287d..97c22b731 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -1763,6 +1763,12 @@ void M_MinimapGenerate(void) return; } + if (automapactive) + { + CONS_Alert(CONS_ERROR, "The automap is active! Please deactivate it and try again.\n"); + return; + } + minigen = AM_MinimapGenerate(wh); if (minigen == NULL || minigen->buf == NULL)