Skip to content

Commit

Permalink
Adjust Automap Exhud Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andrikpowell committed Dec 4, 2024
1 parent 6e83e79 commit eb8f5db
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 @@ -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)
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_on_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_on_stbar) {
if (containers[hud_map].loaded)
dsda_DrawComponents(containers[hud_map].components);
}
Expand Down

0 comments on commit eb8f5db

Please sign in to comment.