Skip to content

Commit

Permalink
- am_overlay turns off the overlay when set to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Apr 17, 2024
1 parent c7bba2a commit 178896d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/am_map.cpp
Expand Up @@ -156,7 +156,15 @@ CUSTOM_CVAR(Int, am_cheat, 0, 0)


CVAR(Int, am_rotate, 0, CVAR_ARCHIVE);
CVAR(Int, am_overlay, 0, CVAR_ARCHIVE);
CUSTOM_CVAR(Int, am_overlay, 0, CVAR_ARCHIVE)
{
// stop overlay if we're told not to use it anymore.
if (automapactive && viewactive && (self == 0))
{
automapactive = false;
viewactive = true;
}
}
CVAR(Bool, am_showsecrets, true, CVAR_ARCHIVE);
CVAR(Bool, am_showmonsters, true, CVAR_ARCHIVE);
CVAR(Bool, am_showitems, false, CVAR_ARCHIVE);
Expand Down

0 comments on commit 178896d

Please sign in to comment.