Search beyond lit area?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaypy
    Swordsman
    • May 2009
    • 294

    Search beyond lit area?

    I keep on getting "you have found a [trap|secret door]" when I haven't actually gotten close enough to see what I have found.

    This seems a touch odd.

    The relevent code seems to be around 93 in cmd1.c/search()

    The los routine used here only checks for obstacles and not light.

    Would player_can_see_bold be a better choice here?
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Good catch. I'm not sure if Gabe intended trap detection to be a 'sixth sense' which didn't rely on visibility. So this might be WAD. I'll point him at this thread next time he's around, if he doesn't find it first.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎