Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   v4 (http://angband.oook.cz/forum/forumdisplay.php?f=11)
-   -   Search beyond lit area? (http://angband.oook.cz/forum/showthread.php?t=5549)

kaypy June 12, 2012 14:24

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 June 12, 2012 15:00

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.


All times are GMT +1. The time now is 20:36.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.