]> granicus.if.org Git - nethack/commit
Eyes plus stinking cloud
authorcohrs <cohrs>
Thu, 21 Sep 2006 15:03:48 +0000 (15:03 +0000)
committercohrs <cohrs>
Thu, 21 Sep 2006 15:03:48 +0000 (15:03 +0000)
commita3e0bf97b1f244e23e84127d1eb47c2216d26d37
tree7d206944a892959d913e1c47738051c58b59e5d2
parent2303fc89239277f4d0175762b3a5500fc91efa32
Eyes plus stinking cloud
stinking clouds extend their timers, causing the "ttl == 0" check in
visible_region_at to be inappropriate; technically it was never quite
right, since the ttl is set to 0 one turn before removal is considered. But
with the Eyes on, this caused a visible change in the region although the
region still existed.  Introduced a new -2L value to designate that the
region is being removed (-1L means it's permanent), which is what
visible_region_at was really trying to test.
doc/fixes34.4
src/region.c