diff --git a/prboom2/src/doomstat.h b/prboom2/src/doomstat.h index 91165aae0..6b1597e59 100644 --- a/prboom2/src/doomstat.h +++ b/prboom2/src/doomstat.h @@ -197,6 +197,7 @@ extern int automap_follow; extern int automap_grid; #define automap_on (automap_active && !automap_overlay) +#define automap_on_stbar (automap_active && R_StatusBarVisible()) #define automap_off (!automap_active && automap_overlay>0) #define automap_input (automap_active) #define automap_hud (automap_active && !automap_overlay) diff --git a/prboom2/src/dsda/exhud.c b/prboom2/src/dsda/exhud.c index 0838e3465..0bf8f2eb4 100644 --- a/prboom2/src/dsda/exhud.c +++ b/prboom2/src/dsda/exhud.c @@ -659,7 +659,7 @@ static void dsda_UpdateComponents(exhud_component_t* update_components) { } void dsda_UpdateExHud(void) { - if (automap_on) { + if (automap_on_stbar) { if (containers[hud_map].loaded) dsda_UpdateComponents(containers[hud_map].components); @@ -689,7 +689,7 @@ int global_patch_top_offset; void dsda_DrawExHud(void) { global_patch_top_offset = M_ConsoleOpen() ? dsda_ConsoleHeight() : 0; - if (automap_on) { + if (automap_on_stbar) { if (containers[hud_map].loaded) dsda_DrawComponents(containers[hud_map].components); }