Add an explicit error for attempting to generate a preliminary minimap while the automap is open.

This commit is contained in:
toaster 2023-01-23 19:17:35 +00:00
parent ea7e29f279
commit 9559dab6a2

View file

@ -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)