Skip to content

Commit

Permalink
Fix Inconsistent Automap Exhud
Browse files Browse the repository at this point in the history
  • Loading branch information
andrikpowell committed Dec 7, 2024
1 parent 2135654 commit b852a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions prboom2/src/doomstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ extern int automap_grid;

#define automap_on (automap_active && !automap_overlay)
#define automap_off (!automap_active && automap_overlay > 0)
#define automap_stbar (automap_active && R_StatusBarVisible())
#define automap_input (automap_active)
#define automap_hud (automap_active && !automap_overlay)

Expand Down
4 changes: 2 additions & 2 deletions prboom2/src/dsda/exhud.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ static void dsda_UpdateComponents(exhud_component_t* update_components) {
}

void dsda_UpdateExHud(void) {
if (automap_on) {
if (automap_stbar) {
if (containers[hud_map].loaded)
dsda_UpdateComponents(containers[hud_map].components);

Expand Down Expand Up @@ -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_stbar) {
if (containers[hud_map].loaded)
dsda_DrawComponents(containers[hud_map].components);
}
Expand Down

0 comments on commit b852a15

Please sign in to comment.