avoid newsym(0,0) for vault guard

When a vault guard is being moving off the map to <0,0> to wait until
his temporary corridor gets removed, don't try to update the map for
that off-the-screen location in order to avoid triggering impossible()
from newsym().

Plus a trivial tweak to NH_abort().  Its argument is never modified so
declare it as such.
This commit is contained in:
PatR
2026-05-11 15:06:13 -07:00
parent 45ab4eb1aa
commit c42d35eac0
4 changed files with 10 additions and 6 deletions
+4 -2
View File
@@ -12,8 +12,10 @@ fix issue where the new game startup message was stating 'Work-in-progress'
even when NH_DEVEL_STATUS was set to NH_STATUS_POSTRELEASE
if 'mention_decor' was set in config file or NETHACKOPTIONS,
starting the game told you that "you are standing on stairs which lead
out of the dungeon", even when the player entered the tutorial where that
wasn't true
out of the dungeon", even when the player entered the tutorial where
that wasn't true
when a vault guard was moved off the map, an impossible about trying to update
map location <0,0> was issued
doc: use full URL for nethack.org in Guidebook.mn
doc: fix a paste error in Guidebook.tex
doc: fix spelling correction in nethack.6