Opened 9 years ago

Closed 9 years ago

#1123 closed bug (fixed (in master))

Monster list incorrectly telling "aware" when a monster is seen

Reported by: anonymous Owned by:
Milestone: 3.2.0 Keywords: subwindows
Cc:

Description

When you see a monster in a lit room, sometimes the monster list displays it as being aware of, not seen. Furtherer a detailed description of one such case comes.
First, the character moves so that the only monster becomes not screened with an obstacle. If the character appears in the most distant cell (on the same horizontal) that makes seeing the monster possible or one cell closer, the monster is put into the list of monsters you're aware of; if the character appears closer, the monster is put into the list of monsters you see. This holds for both the monster list displayed in a separate window and the monster list shown by '['.
Second, the character moves towards the monster. The monster list shown by '[' behaves the same way it did in the first part - the two furtherest cells lead to 'aware of', the others to 'see'. However, the separate-window monster list does not get updated until the character is located two cells from the monster. At that point the monster goes into the list of monsters seen and does not leave it even when the character comes back to the furtherest cell where the '[' shows the monster as being aware of.

Savefile attached.

Attachments (2)

Tanriol.bug (46.7 KB) - added by anonymous 9 years ago.
The monster is currently seen, but displayed as being aware of
update2.diff (517 bytes) - added by Tobias 9 years ago.
Fix for subwindow update

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by anonymous

The monster is currently seen, but displayed as being aware of

comment:1 Changed 9 years ago by magnate

  • Keywords subwindows added
  • Milestone changed from Triage to 3.1.3

I'm not sure I understand this - are we talking about a LOS bug, or a straightforward subwindow update bug?

comment:2 Changed 9 years ago by MarbleDice

Haven't had a chance to test this yet, but I suspect it may be an issue of the definition of LOS vs aware for the monster list; aren't "in los" monsters actually those monsters which are projectable? So if you see a monster, but cannot hit it with a magic missile, then it shows up as aware, not in los?

comment:3 Changed 9 years ago by MarbleDice

  • Status changed from new to confirmed

There is indeed a bug. The monster list subwindow isn't updated when a visible monster that is not projectible (and thus classified as "aware") becomes projectible (and should be classified as "seen").

comment:4 Changed 9 years ago by Tobias

In fact it is combination of bug #1067 and the problems with projectible/visible.
#1067 happend quite often, but was fixed only for monsters moving into LOS from aware, not for the Player moving.
The same method fixes this one to (just tested it).

The other problem is that the game writes seen/aware when it means projectible/aware. But I asume this won't be fixed in this bug.

Changed 9 years ago by Tobias

Fix for subwindow update

comment:5 Changed 9 years ago by MarbleDice

  • Resolution set to fixed
  • Status changed from confirmed to closed

[81286f9] (SVN r1950), thanks Tobias.

Note: See TracTickets for help on using tickets.