fix #Q108 - adding candles to Candelabrum while underwater

From a bug report, but just received:
you can't affix candles to the candelabrum while underwater, because the
underwater check (can't light candles while underwater) is made too soon.
If you somehow managed to get a lit lamp, candle, or candelabrum while
underwater, you wouldn't be able to extinguish it for same reason.  The
bug report included a URL for a fix, but I didn't look at that.  This
changes use_candle() to rely on use_lamp() for underwater handling, and
changes use_lamp() and use_candelabrum() to check for extinguishing
before making the underwater check.
This commit is contained in:
nethack.rankin
2007-02-04 05:34:59 +00:00
parent 0f0f7190f3
commit 8465f87d2f
2 changed files with 11 additions and 13 deletions

View File

@@ -302,6 +302,7 @@ don't access freed memory after engraving "wrests one last charnge" from wand
a magic portal could be rendered inactive for the hero if a successful
hangup save took place during level change; leaving the level by any
means other than triggering the portal would reactivate it
hero wasn't allowed to affix candles to the candelabrum while underwater
Platform- and/or Interface-Specific Fixes