From 5cd0f14345f9c9501b5dffb9c8a80009559c512e 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.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/m_misc.cpp b/src/m_misc.cpp index 4a222a629..79738c3f0 100644 --- a/src/m_misc.cpp +++ b/src/m_misc.cpp @@ -1652,6 +1652,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)