]> granicus.if.org Git - nethack/commitdiff
workaround #H4298/bz 406 - vision glitch
authorPatR <rankin@nethack.org>
Sat, 12 Jan 2019 03:08:02 +0000 (19:08 -0800)
committerPatR <rankin@nethack.org>
Sat, 12 Jan 2019 03:08:02 +0000 (19:08 -0800)
The entry chamber for the Fort Ludios level would be completely lit
except for one corner wall if you arrived carrying a lit candle.  The
unlit spot turns out to be correct, it is beyond candle radius, but
spots further away than that were showing up lit.  That's due to them
bordering a lit region on the opposite side and lit regions seem to
be bigger than their specified dimensions.

I tried to make the lit walls be unlit but it wasn't working.  (Making
the lit region be smaller would probably work but might have unintended
consequences when populating the zoo room.  I didn't try that.)  This
makes the unlit corner show up if light hits the spot next to it, so
that it behaves like the other lit walls surrounding that entry area.

I haven't marked the bug report closed because I don't think this is
the proper way to fix this.

dat/knox.des
doc/fixes36.2

index 65e6c560618942225c6fc58e7e15b88dd06a2975..74bda285fcdfc2eb0a05651ff7e61904442e27b8 100644 (file)
@@ -1,4 +1,4 @@
-# NetHack 3.6  knox.des        $NHDT-Date: 1432512784 2015/05/25 00:13:04 $  $NHDT-Branch: master $:$NHDT-Revision: 1.9 $
+# NetHack 3.6  knox.des        $NHDT-Date: 1547262478 2019/01/12 03:07:58 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.12 $
 #      Copyright (c) 1989 by Jean-Christophe Collet
 #      Copyright (c) 1992 by Izchak Miller
 # NetHack may be freely redistributed.  See license for details.
@@ -70,6 +70,32 @@ REGION:(03,10,07,13),lit,"zoo",filled,irregular
 #   arrival chamber; needs to be a real room to control migrating monsters,
 #   and `unfilled' is a kludge to force an ordinary room to remain a room
 REGION:(06,15,09,16),unlit,"ordinary",unfilled
+
+#   Run away!  Or at least look away!
+#
+#   Due to a quirk in how lit regions work, entering the arrival chamber
+#   with a lit candle reveals the left and left-top walls even though
+#   they're beyond the range of a candle's light, but the closer upper-right
+#   corner shows as blank (legitmately since that spot two steps away
+#   diagonally is beyond candle radius).  Explicity lighting the problematic
+#   spot hides that quirk.  Without a light source, it doesn't become mapped
+#   until you move next to it; with one, it becomes mapped when the spot
+#   adjacent to it becomes lit, matching the observable behavior of the rest
+#   of the entry chamber.
+REGION:(10,14,10,14),lit,"ordinary"
+#   Unfortunately, a single lit spot actually lights a 3x3 area around that
+#   spot, resulting in the wall corner showing even without a candle and
+#   making some unexpected lit spots on that other side of the wall.
+#   Making an explicitly unlit box around the lit spot hides _that_ quirk.
+REGION:(09,13,09,15),unlit,"ordinary"
+REGION:(09,13,11,13),unlit,"ordinary"
+REGION:(11,13,11,15),unlit,"ordinary"
+#   (We don't need to close the box across the bottom.)
+#REGION:(09,15,11,15),unlit,"ordinary"
+#   [Note: expanding unlit arrival region to (05,14,09,16) did not solve this
+#   issue in other direction, to make the walls unlit and obey candle radius.]
+#   We now take you back to your regularly scheduled level description....
+
 #   Barracks
 REGION:(62,03,71,04),lit,"barracks",filled,irregular
 # Doors
index 2fd1d559461f44cce989be84d777c15231f228dc..fd42694f9f69cf286e2efbb60eb648422bba947c 100644 (file)
@@ -1,4 +1,4 @@
-$NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.226 $ $NHDT-Date: 1547118629 2019/01/10 11:10:29 $
+$NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.227 $ $NHDT-Date: 1547262477 2019/01/12 03:07:57 $
 
 This fixes36.2 file is here to capture information about updates in the 3.6.x
 lineage following the release of 3.6.1 in April 2018. Please note, however,
@@ -329,6 +329,11 @@ when ^T resorted to the teleport-away spell if hero didn't have intrinsic
        with 'Z') possible after forgetting the spellbook due to amnesia
 setting SEDUCE=0 made all succubus and incubus attacks be described as
        smiling engagingly or seductively rather than hitting or missing
+entering Ft.Ludios with a lit candle lit up the entire entry room except for
+       one corner spot; that corner is beyond candle radius but other spots
+       even further away were being shown; add a hack to knox.des to make
+       that corner show up too, although a proper fix should make the other
+       walls not be seen until approached
 
 
 Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository