![]() |
#1 |
Scout
Join Date: May 2009
Posts: 37
![]() |
Bug: new-style monster list does not correctly report line-of-sight
The new-style monster list doesn't always report line-of-sight correctly. Take a look at this save file. The character has telepathy and so is aware of the pack of hounds in the nearby room, but although he can target 3 of them directly, the monster list reports that he can't see any of them.
Note that /without/ telepathy he likely wouldn't be able to see any, since the room isn't lit --- I guess that's how it's calculating things at the moment. But I think a different algorithm is needed to cope with things like this: for each monster you're aware of, you need to check directly to see if it's in line-of-sight. Cheers, JV. |
![]() |
![]() |
![]() |
#2 |
Scout
Join Date: May 2009
Posts: 37
![]() |
It also reports that you can see a monster, when you can't! Again, an example is attached.
|
![]() |
![]() |
![]() |
#3 | |
Angband Devteam member
|
Quote:
Thanks for the report - I've opened a ticket for this. |
|
![]() |
![]() |
![]() |
#4 | |
Apprentice
Join Date: May 2007
Location: Manchester, UK
Posts: 50
![]() |
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 | |
Angband Devteam member
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 | |
Angband Devteam member
|
Quote:
Last edited by Magnate; June 13, 2009 at 14:19. |
|
![]() |
![]() |
![]() |
#7 |
Angband Devteam member
|
Ok, I have committed r1438 which uses player_can_see_bold rather than player_has_los_bold. I'm not sure if this will work (as it may rely on the grid being lit), but please test with ESP.
|
![]() |
![]() |
![]() |
#8 |
Angband Devteam member
|
That wasn't the answer. The answer is to use (m_ptr->mflag & MFLAG_VIEW), which is designed to record visibility. It wasn't being set properly when monsters in LOS were detected by ESP - fixed in r1439.
|
![]() |
![]() |
![]() |
#9 |
Scout
Join Date: May 2009
Posts: 37
![]() |
Thanks Magnate, a speedy fix as usual!
|
![]() |
![]() |
![]() |
#10 |
Angband Devteam member
|
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bug: monster list r1418 | bebo | Vanilla | 4 | June 13, 2009 14:38 |
Line of sight | Donald Jonker | Vanilla | 1 | June 7, 2009 01:15 |
monster list info | DaviddesJ | Vanilla | 1 | March 31, 2008 03:10 |
The Visible monster list, modifications. | Irashtar | Vanilla | 4 | October 27, 2007 01:40 |
Terrain changes visible outside characters sight -- Feature or Bug?? | Elsairon | Vanilla | 3 | June 12, 2007 13:04 |