Skip to content

Commit

Permalink
Stop making notes about once-forgotten features.
Browse files Browse the repository at this point in the history
The game makes a note of some features whenever they are marked as
"seen". The "forget level map" command clears the "seen" flag for most
of the features on the current level, so something can have several
notes made about its discovery.

Only make a note the first time something is seen.
  • Loading branch information
Aliscans committed Oct 11, 2024
1 parent 07456b3 commit a1ac616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crawl-ref/source/map-knowledge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ void set_terrain_seen(const coord_def pos)
{
_automap_from(pos.x, pos.y, _map_quality());

if (!is_boring_terrain(feat))
if (!is_boring_terrain(feat)
&& (!env.map_forgotten
|| ~(*env.map_forgotten)(pos).flags & MAP_SEEN_FLAG))
{
string desc = feature_description_at(pos, false, DESC_A) + ".";
take_note(Note(NOTE_SEEN_FEAT, 0, 0, desc));
Expand Down

0 comments on commit a1ac616

Please sign in to comment.