]> granicus.if.org Git - nethack/log
nethack
6 years agoMakefile.msc update
nhmall [Sun, 16 Dec 2018 02:52:00 +0000 (21:52 -0500)]
Makefile.msc update

Tell people where to find the latest PDCurses git
repository

6 years agoMerge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win...
Bart House [Sun, 16 Dec 2018 01:35:43 +0000 (17:35 -0800)]
Merge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win-minor

6 years agoAdded PDCurses project to VS 2017 build.
Bart House [Sun, 16 Dec 2018 01:35:27 +0000 (17:35 -0800)]
Added PDCurses project to VS 2017 build.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Sun, 16 Dec 2018 00:34:56 +0000 (19:34 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agomore win32 gui fuzzer work
nhmall [Sun, 16 Dec 2018 00:31:42 +0000 (19:31 -0500)]
more win32 gui fuzzer work

6 years agomore win32 gui fuzzer work
nhmall [Sun, 16 Dec 2018 00:31:07 +0000 (19:31 -0500)]
more win32 gui fuzzer work

6 years agotty SIGHUP
PatR [Sun, 16 Dec 2018 00:24:59 +0000 (16:24 -0800)]
tty SIGHUP

We still don't know whether this will be of any help against
disconnected processes that hog the CPU instead of exiting, but I
don't think it imposes significant overhead on ones which aren't
disconnected.  Install it before it suffers from more bit rot.

6 years agoget_hilite_color()
PatR [Sat, 15 Dec 2018 23:46:49 +0000 (15:46 -0800)]
get_hilite_color()

Stop pretending that long and int are the same size when picking status
highlight rule for gold or time or experience-points.

Also, K&R compilation might lack <limits.h>, so let XXXconf.h define the
necessary macro(s) (currently just LONG_MAX) so that it can be skipped.

6 years agoMerge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win...
Bart House [Sat, 15 Dec 2018 22:50:14 +0000 (14:50 -0800)]
Merge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win-minor

6 years agoSmall improvements to fuzzer for NetHackW.
Bart House [Sat, 15 Dec 2018 22:49:59 +0000 (14:49 -0800)]
Small improvements to fuzzer for NetHackW.

Can toggle fuzzer on/off using "Pause" key if attached to debugger.
Extended command selected randomly.

6 years agoFix always trapped castle chest
Patric Mueller [Sat, 15 Dec 2018 21:40:30 +0000 (22:40 +0100)]
Fix always trapped castle chest

6 years agoMakefile.msc update
nhmall [Sat, 15 Dec 2018 07:17:15 +0000 (02:17 -0500)]
Makefile.msc update

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-minor
nhmall [Sat, 15 Dec 2018 04:11:37 +0000 (23:11 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-minor

6 years agofix up PDCurses cursor placement for prompts
nhmall [Sat, 15 Dec 2018 04:08:41 +0000 (23:08 -0500)]
fix up PDCurses cursor placement for prompts

6 years agotty status condition: Cf, Hl, Rd
PatR [Sat, 15 Dec 2018 02:51:07 +0000 (18:51 -0800)]
tty status condition: Cf, Hl, Rd

While the fuzzer was running, amidst the continual screen updating I
caught a glimpse of "Cn" and was puzzled about how the hero became
cancelled.  I quickly realized it actually meant confused, but I
think "Cf" is a better abbreviation for that.  I've also changed "Ha"
to "Hl" for hallucination and "Ri" to "Rd" for riding.  The rest is
formatting.

6 years agodisplacing pet long worm
PatR [Sat, 15 Dec 2018 02:17:42 +0000 (18:17 -0800)]
displacing pet long worm

Salvage part of an old patch.  Swapping places with any long worm,
even a baby one, always failed with "You stop.  Foo is in the way!"
This lets you swap places with tame baby long worms, and adult ones
if they have no tail (which won't happen unless there are more than
32 long worms on the current level--even if a long worm appears to
be only a head, there is normally a hidden tail segment at the same
location).

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-minor
nhmall [Fri, 14 Dec 2018 22:25:24 +0000 (17:25 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-minor

6 years agolast? pickup_types
PatR [Fri, 14 Dec 2018 07:52:35 +0000 (23:52 -0800)]
last? pickup_types

Although choose_classes_menu() is only used for objects, it is written
to handle monsters too.  My change to give <space> special handling
might have broken selecting ghosts if it's ever used for monsters so
fix that.

6 years agoRemove parameter names in declaration.
Bart House [Fri, 14 Dec 2018 05:23:43 +0000 (21:23 -0800)]
Remove parameter names in declaration.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Fri, 14 Dec 2018 02:25:34 +0000 (21:25 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agomore interactive !pickup_types
PatR [Fri, 14 Dec 2018 01:33:46 +0000 (17:33 -0800)]
more interactive !pickup_types

More on clearing pickup_types so that autopickup reverts to picking up
evertyhing:  for menustyle:Full and Partial, add a menu entry for 'all
classes' as an alternative to unselecting every class already set.

Also, Full and Partial had no way to include venom.  Now it's a choice
when in wizard mode.  There's still no way--other than switching to
Traditional or Combination--during normal play (where venom objects can
exist if they were wished for in wizard mode and then left in bones).

6 years agostale dependency
nhmall [Fri, 14 Dec 2018 01:21:26 +0000 (20:21 -0500)]
stale dependency

6 years agocommented out by default
nhmall [Fri, 14 Dec 2018 01:11:03 +0000 (20:11 -0500)]
commented out by default

6 years agoMerge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource...
nhmall [Fri, 14 Dec 2018 01:08:47 +0000 (20:08 -0500)]
Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01

6 years agopdcurses expected objs
nhmall [Fri, 14 Dec 2018 01:07:22 +0000 (20:07 -0500)]
pdcurses expected objs

Match the required curses obj's in most recent updates from
git clone https://git.code.sf.net/p/pdcurses/code pdcurses

6 years agospell "autopickup" consistently
PatR [Fri, 14 Dec 2018 00:54:52 +0000 (16:54 -0800)]
spell "autopickup" consistently

The '@' command doesn't hyphenate 'auto-pickup' so 'O' and ^X shouldn't
either.

6 years agorandom_response() buffer overflow
PatR [Thu, 13 Dec 2018 10:12:31 +0000 (02:12 -0800)]
random_response() buffer overflow

'sz' is the size of the buffer; 'if (count < sz) buf[count++] = c;'
can fill the entire buffer, leaving count==sz, so buf[count] = '\0';
would be out of bounds.

Formatting was way off.  Indentation these days should be multiples
of 4 spaces, never tabs.

6 years agocore code style
nhmall [Thu, 13 Dec 2018 06:36:36 +0000 (01:36 -0500)]
core code style

6 years agoMerge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win...
Bart House [Thu, 13 Dec 2018 05:46:32 +0000 (21:46 -0800)]
Merge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win-minor

6 years agoChanges to get fuzzer working in NetHackW.
Bart House [Thu, 13 Dec 2018 05:46:14 +0000 (21:46 -0800)]
Changes to get fuzzer working in NetHackW.

6 years agoshow autopickup in ^X feedback
PatR [Thu, 13 Dec 2018 02:55:06 +0000 (18:55 -0800)]
show autopickup in ^X feedback

Gathers all the autopickup information in one place:

Auto-pickup is { off
               | on { for 'classes' [plus thrown]
                    | all types                   } [, with exceptions] }.

6 years agointeractive !pickup_types
PatR [Thu, 13 Dec 2018 02:49:12 +0000 (18:49 -0800)]
interactive !pickup_types

To use 'O' to clear a value from pickup_types with menustyle Traditional
or Combination, you needed to give a value starting with 'a' (for 'all').
Accept space(s) too, similar to removing an object or monster name.

6 years agofuzzing hero boost
PatR [Thu, 13 Dec 2018 01:55:43 +0000 (17:55 -0800)]
fuzzing hero boost

I watched the fuzzer run for a bit and noticed that Str and most other
characteristics were steadily dropping until they hit 3 and not being
recovered, so I gave the defenseless hero a chance to benefit from
blessed restore ability occasionally.  It hasn't helped much.  Str and
Con both still drop to 3.  [If I had to guess, I'd go with side-effect
of polymorphing, but not an intended one.]

6 years agoplace_monster() warning bit
PatR [Thu, 13 Dec 2018 01:54:53 +0000 (17:54 -0800)]
place_monster() warning bit

6 years agomon_sanity_check tweak
PatR [Wed, 12 Dec 2018 23:42:46 +0000 (15:42 -0800)]
mon_sanity_check tweak

A change I included with the vault guard fix was triggering fuzzer
panics about dead monsters on the fmons list.  I'm not quite sure why;
I couldn't reproduce it interactively.  [Perhaps caused by hero killing
a monster and then getting another move before monsters get their turn,
but trying to do that still didn't trip the dead monster sanity check.]
Suppress that check so that the fuzzer can run amok.

Also, a waiting-to-exit vault guard could move extra times, uselessly
since ''hero hasn't left temporary corridor yet'' is why he's waiting,
if there were any monsters fast enough to get extra moves before the
hero's next turn.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Wed, 12 Dec 2018 11:40:52 +0000 (06:40 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agofix #H7677 - guard placed twice at <0,0>
PatR [Wed, 12 Dec 2018 09:54:33 +0000 (01:54 -0800)]
fix #H7677 - guard placed twice at <0,0>

"Placing monster over another?" warning was triggered for vault guard
by an earlier change which made m_detach() stop removing monsters at
<0,*> from level.monsters[][].  So one guard would replace another at
<0,0> for however many guards were created, and memory for all but
the last one would be lost.

This involved a lot of flailing about and the patch includes various
things would could have been discarded.  One or two extended monster
sanity checks are included, plus a couple of debugpline()'s for
tracking guard movement.

6 years agoTerminal font when not fitting to screen. Consolas for fit to screen.
Bart House [Wed, 12 Dec 2018 04:52:07 +0000 (20:52 -0800)]
Terminal font when not fitting to screen.  Consolas for fit to screen.

6 years agoan() bit
PatR [Tue, 11 Dec 2018 09:27:20 +0000 (01:27 -0800)]
an() bit

6 years agofix 'a X'
PatR [Tue, 11 Dec 2018 01:34:18 +0000 (17:34 -0800)]
fix 'a X'

The fruit name fix a couple of days ago revealed that an() didn't
pick the right article for single letters.  If you set named fruit to
"X" and wished for "fruit", you'd have 'k - a X' added to inventory.
This changes an() and also doname() which bypasses an().

6 years agofix apparent copy and paste error
nhmall [Mon, 10 Dec 2018 23:01:43 +0000 (18:01 -0500)]
fix apparent copy and paste error

6 years agotypo fix
nhmall [Mon, 10 Dec 2018 22:28:43 +0000 (17:28 -0500)]
typo fix

6 years agotrigger update
nhmall [Mon, 10 Dec 2018 22:24:32 +0000 (17:24 -0500)]
trigger update

6 years agoQt build
nhmall [Mon, 10 Dec 2018 14:00:50 +0000 (09:00 -0500)]
Qt build

6 years agofix #H7707 - terrain change leaving stale flags
PatR [Mon, 10 Dec 2018 11:52:00 +0000 (03:52 -0800)]
fix #H7707 - terrain change leaving stale flags

struct rm.flags in overloaded for a bunch of rm.typ -dependent things
(doormask, altarmask, throne/fountain/sink looted, a few others) and
wasn't being reset for various cases where rm.typ gets changed.

I've changed a lot, some no doubt unnecessarily, and probably missed
plenty.  This compiles but has not been thoroughly tested.

6 years agofix #H7704 - clairvoyance: objects vs pools
PatR [Mon, 10 Dec 2018 10:21:31 +0000 (02:21 -0800)]
fix #H7704 - clairvoyance: objects vs pools

When clairvoyance revealed an underwater object and the player wasn't
being given a chance to browse for some other reason, the map didn't
get refreshed and the object stayed displayed with the water hidden
under it.  Force a chance to browse when revealing underwater objects
despite that being intrusive when clairvoyance kicks in while walking
around.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Mon, 10 Dec 2018 05:50:01 +0000 (00:50 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agoallow a deferred windowport init during options processing
nhmall [Mon, 10 Dec 2018 05:44:18 +0000 (00:44 -0500)]
allow a deferred windowport init during options processing

When options processing encountered OPTIONS=windowtype:X,
the code would immediately attempt to switch over to that
windowtype right in the midst of options processing.

This stores the chosen option into
chosen_window[WINTYPELEN]
thus allowing the startup code to choose it after
options processing has been completed.

6 years agofix #H7708 - change in terrain not noticed
PatR [Mon, 10 Dec 2018 00:22:27 +0000 (16:22 -0800)]
fix #H7708 - change in terrain not noticed

Jumping or teleporting while levitating in xorn form wouldn't toggle
blocking of levitation when moving from open spots to wall/stone and
unblocking of same when moving the opposite way.

This handles those cases but there are no doubt others.  The only
other one I checked was when failed #untrap moves hero onto trap.
That case works correctly--at least after this fix is in place.

Noticed while working on it:  change of terrain didn't always update
the status line.  When levitation became blocked, it still said Lev
and when unblocked, didn't say that.  Next status update got status
condition back in sync.

6 years agofix #H7702 - named fruit warning: singular of null
PatR [Sun, 9 Dec 2018 23:03:13 +0000 (15:03 -0800)]
fix #H7702 - named fruit warning: singular of null

Some code added for 3.6.1 tries to find the longest matching prefix
when comparing a user-supplied with previously set up fruit names.
It does so by temporarily replacing space with NUL then passing that
to makesingular().  After already having named a fruit (resulting in
something to try to compare with), attempting to assign a name
beginning with two or more spaces would yield an impossible "singular
of null?" warning.

After the warning, the name minus its leading spaces got successfully
assigned.  I'm not sure why a single leading space didn't trigger it
too, nor where the leading (and trailing, if any) spaces are going
away when the name is assigned.

Fix by removing all leading and trailing spaces from a new fruit name,
and combine consecutive internal spaces to one, before any other
manipulations.  (This can result in names that used to work as-is now
being simplified a bit--when consecutive internal spaces have been
given--but that shouldn't be a problem.)

Also, don't complain about "missing parameter for 'fruit:'" if user
hits <return> when prompted for fruit name by 'O'.  An empty fruit
name at that stage is just a no-op.

6 years agoChanges to font size and vary_msgcount options for Windows nethack ports.
Bart House [Sun, 9 Dec 2018 22:37:07 +0000 (14:37 -0800)]
Changes to font size and vary_msgcount options for Windows nethack ports.

6 years agoNetHackW default font changed from "Terminal" to "Courier New"
Bart House [Sun, 9 Dec 2018 22:06:25 +0000 (14:06 -0800)]
NetHackW default font changed from "Terminal" to "Courier New"

6 years agoMerge branch 'win-minor' into win-fontmap
Bart House [Sun, 9 Dec 2018 22:02:57 +0000 (14:02 -0800)]
Merge branch 'win-minor' into win-fontmap

# Conflicts:
# win/win32/mhmap.c

6 years agoThree fixes to NetHackW font handling.
Bart House [Sun, 9 Dec 2018 19:57:50 +0000 (11:57 -0800)]
Three fixes to NetHackW font handling.

Check that player level is valid before checking if it is rogue.
Prevent attempting to pick a font that is too small.
Don't leak fonts when trying to find a font that fits.

6 years agoRender the two block glyphs using FillRect instead of DrawText.
Bart House [Sun, 9 Dec 2018 19:30:29 +0000 (11:30 -0800)]
Render the two block glyphs using FillRect instead of DrawText.

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-minor
nhmall [Sun, 9 Dec 2018 18:47:12 +0000 (13:47 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-minor

6 years agosome early startup adjustments
nhmall [Sun, 9 Dec 2018 18:09:30 +0000 (13:09 -0500)]
some early startup adjustments

6 years agofixes entry for foxen refix
nhmall [Sun, 9 Dec 2018 15:31:07 +0000 (10:31 -0500)]
fixes entry for foxen refix

commit e0927cd983097392efd06cec32cba43ee828fb82 fixes #167

6 years agoMerge branch 'foxen_fix' into NetHack-3.6.2-beta01
nhmall [Sun, 9 Dec 2018 15:19:27 +0000 (10:19 -0500)]
Merge branch 'foxen_fix' into NetHack-3.6.2-beta01

6 years agomore windmain
nhmall [Sun, 9 Dec 2018 15:14:19 +0000 (10:14 -0500)]
more windmain

6 years agoFix resurfacing of "foxen" pluralization bug
copperwater [Sun, 9 Dec 2018 14:51:47 +0000 (09:51 -0500)]
Fix resurfacing of "foxen" pluralization bug

Inadvertently reintroduced in f9f1236. It was just the conditional
that was bad: due to resolving the possible buffer underflow when
comparing to "muskox", the pluralizer now only adds -es when the length
of the string is greater than 5. So for "box" and "fox" the pluralizer
will never add the -es ending, since they are greater than 5.

This commit checks for "does not end in muskox" correctly.

6 years agoclean up some tear-down
nhmall [Sun, 9 Dec 2018 04:04:53 +0000 (23:04 -0500)]
clean up some tear-down

Windows continued to use function pointers belonging
to particular window ports that were still assigned
even after that port (tty) had gone through its
shutdown procedures when requested by the core.
Fix that and return to the minimal function pointers
that are not part of any of the actual WindowPorts.

6 years agoclean up Windows exit routines
nhmall [Sun, 9 Dec 2018 03:34:50 +0000 (22:34 -0500)]
clean up Windows exit routines

6 years agoa late bot() call was observed on GUI Windows so prevent such a crash
nhmall [Sun, 9 Dec 2018 03:08:55 +0000 (22:08 -0500)]
a late bot() call was observed on GUI Windows so prevent such a crash

6 years agomore startup tweaking for Windows
nhmall [Sun, 9 Dec 2018 02:17:34 +0000 (21:17 -0500)]
more startup tweaking for Windows

6 years agoUpdate Visual Studio projects to reflect recent change
nhmall [Sun, 9 Dec 2018 01:24:24 +0000 (20:24 -0500)]
Update Visual Studio projects to reflect recent change

6 years agoMakefile.msc bit
nhmall [Sun, 9 Dec 2018 01:11:25 +0000 (20:11 -0500)]
Makefile.msc bit

6 years agorelocate safeproc.c from sys/share to win/share
nhmall [Sun, 9 Dec 2018 01:09:58 +0000 (20:09 -0500)]
relocate safeproc.c from sys/share to win/share

6 years agoMakefile.msc update
nhmall [Sat, 8 Dec 2018 23:45:48 +0000 (18:45 -0500)]
Makefile.msc update

6 years agoWindows startup modifications
nhmall [Sat, 8 Dec 2018 22:56:20 +0000 (17:56 -0500)]
Windows startup modifications
 Changes to be committed:
modified:   include/winprocs.h
modified:   src/options.c
modified:   sys/share/pcmain.c
new file:   sys/share/safeproc.c
modified:   sys/winnt/Makefile.msc
modified:   sys/winnt/stubs.c
new file:   sys/winnt/windmain.c
modified:   sys/winnt/winnt.c
modified:   win/win32/vs2017/NetHack.vcxproj
modified:   win/win32/vs2017/NetHackW.vcxproj
modified:   win/win32/winhack.c

Because multiple window ports are supported on Windows
now, even in the same executable and selectable via
config file in some cases, some adjustments became
necessary. There will likely be some further refining
of this over the next day or two.

List of changes:

Move Windows startup from sys/share/pcmain.c and
into its own sys/winnt/windmain.c so that it can
be modified to fix some current breakage, and
allow altering the order of some things.

There is startup processing code that is common to
all of the Windows WindowPorts, but that startup
processing code needs to have no dependency on
any one of those WindowPorts.

Yet, during startup processing, some of the initialization
routines can end up calling NetHack functions that
expect an active Window port underneath, and if there
isn't one, routines like pline, impossible, panic can
end up invoking null function pointers.

Place a new file sys/share/safeproc.c, in which a complete
window port is available for early startup processing
purposes. It's WindowPort name field is set to
"safe-startup" just for reference.  The prototypes in
include/winprocs.h require that SAFEPROCS be

Usage:

 windowprocs = get_safe_procs(0);
initializes a set of winprocs function pointers that ensure
none of the function pointers are left null, but that's all it does.

 windowprocs = get_safe_procs(1);
initializes a set of winprocs functions pointers that ensure
none of the function pointers are left null, but also
provides some basic output and input functionality using nothing
other than C stdio routines (no platform or OS specific code).

The conditional code related to WIN32 has been removed from
sys/share/pcmain.c

The code common to all of the Windows WindowPorts calls
get_safe_procs() almost immediately to ensure that
there is a set of WindowPort winprocs available.

6 years agorecursive destroy_item()
PatR [Sat, 8 Dec 2018 00:51:18 +0000 (16:51 -0800)]
recursive destroy_item()

Make the sequence:
  be zapped by lightning,
  have worn ring of levitation be destroyed,
  fall onto fire trap
work better.  The fire trap handling will mark everything in inventory
as already processed; anything vulnerable to lightning past the destroyed
ring would not be checked.  So delay destroying such a ring until after
all of inventory has been subjected to lightning.

6 years agogold highlight bit
PatR [Sat, 8 Dec 2018 00:37:24 +0000 (16:37 -0800)]
gold highlight bit

Keep type/value straight:  'update_all' is boolean, not ordinary int.

6 years agoback out some spider changes
nhmall [Sat, 8 Dec 2018 00:12:56 +0000 (19:12 -0500)]
back out some spider changes

After consultation with the original committer, this
is being pulled out, possibly revisited later. There was
originally meant to be a follow-up piece to this that he
never had a chance to integrate for various reasons.

6 years agoClear the getlin buffer
Pasi Kallinen [Fri, 7 Dec 2018 20:18:50 +0000 (22:18 +0200)]
Clear the getlin buffer

Recent change to this bit of code didn't clear the buffer,
which causes garbage in the string if compiled with EDIT_GETLIN

6 years agoMerge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource...
nhmall [Fri, 7 Dec 2018 14:40:38 +0000 (09:40 -0500)]
Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01

6 years agoadd MM_NOGRP makemon() flag
nhmall [Fri, 7 Dec 2018 14:29:01 +0000 (09:29 -0500)]
add MM_NOGRP makemon() flag

add MM_NOGRP makemon() flag as a means of suppressing groups of monsters in
a couple places that warrant it when a specific monster type isn't
specified on the call to makemon()

6 years agomenucolors
PatR [Fri, 7 Dec 2018 09:20:20 +0000 (01:20 -0800)]
menucolors

In the 'special options' section at the end of 'O's menu, change the
spelling for the menucolors entry to "menu colors" so that it isn't
spelled exactly the same as the 'menucolors' boolean option.  Only
affects what the player sees when reading that menu.

If player uses 'O' to add any menu colors and 'menucolors' boolean is
Off at the time, give a reminder to toggle it to On in order to have
those menu colorings become active.  (Adding hilite_status entries has
a similar reminder for 'statushilites' if done while that is 0.)

6 years agofix #H7655 - highlighting gold
PatR [Fri, 7 Dec 2018 08:36:38 +0000 (00:36 -0800)]
fix #H7655 - highlighting gold

With options along the line of
 OPTIONS=statushilites:4
 HILITE_STATUS=gold/always/yellow
gold started out unhighlighted (unhighlit?).  I didn't try to figure
out why, just changed things to force a full status update when gold
requires internal changes (different \G encoding or different glyph)
which is something that happens when session first enters moveloop().

6 years agoadd MM_ASLEEP makemon() flag and honor it for fill_zoo
nhmall [Fri, 7 Dec 2018 03:30:15 +0000 (22:30 -0500)]
add MM_ASLEEP makemon() flag and honor it for fill_zoo

6 years agofix #H7686 - destroy_item()'s inventory traversal
PatR [Fri, 7 Dec 2018 01:27:36 +0000 (17:27 -0800)]
fix #H7686 - destroy_item()'s inventory traversal

Inventory traversal can be disrupted when items being traversed are
able to change inventory.  I've lost track of how many times this
sort of thing has been discovered.

Report claimed that boiled potion of polymorph caused transformation
which resulted in dropped weapon and dropped or destroyed worn armor.
That was evidently a guess; potionbreathe() for that potion only
abuses constitution.  The traceback showed 'you_were()' was involved.
Boiled potion of unholy water triggers human-to-beast transformation
of hero inflicted with lycanthropy, yielding similar situation.

I didn't notice anything unusual when reproducing this but inventory
was definitely vulnerable.  My 'one line' fixes entries are steadily
getting to be more verbose; I may have to go back to 'fix bug'.  :-}

6 years agoMerge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource...
nhmall [Thu, 6 Dec 2018 04:45:56 +0000 (23:45 -0500)]
Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01

6 years agoheader update on cursstat.c
nhmall [Thu, 6 Dec 2018 04:43:59 +0000 (23:43 -0500)]
header update on cursstat.c

6 years agomore green slime
PatR [Wed, 5 Dec 2018 22:56:03 +0000 (14:56 -0800)]
more green slime

When a hero dies due to turning into green slime, actually polymorph
him into a green slime monster before killing him off.  That way he'll
show as a green 'P' on the map instead of white '@' during final
disclosure.  Also, armor that gets destroyed by polymorphing into that
form will be absent from resulting bones file.

6 years agoupdate header on curswins
nhmall [Wed, 5 Dec 2018 22:45:40 +0000 (17:45 -0500)]
update header on curswins

6 years agoupdate header on cursstat
nhmall [Wed, 5 Dec 2018 22:45:15 +0000 (17:45 -0500)]
update header on cursstat

6 years agoupdate header on cursmisc
nhmall [Wed, 5 Dec 2018 22:44:08 +0000 (17:44 -0500)]
update header on cursmisc

6 years agoupdate header on cursmesg
nhmall [Wed, 5 Dec 2018 22:43:33 +0000 (17:43 -0500)]
update header on cursmesg

6 years agoupdate header on cursmain
nhmall [Wed, 5 Dec 2018 22:42:49 +0000 (17:42 -0500)]
update header on cursmain

6 years agoupdate header on cursinvt
nhmall [Wed, 5 Dec 2018 22:42:11 +0000 (17:42 -0500)]
update header on cursinvt

6 years agoupdate header on cursinit
nhmall [Wed, 5 Dec 2018 22:41:30 +0000 (17:41 -0500)]
update header on cursinit

6 years agoupdate header on cursdial
nhmall [Wed, 5 Dec 2018 22:40:33 +0000 (17:40 -0500)]
update header on cursdial

6 years agoAdd missing valid location descriptors
Pasi Kallinen [Wed, 5 Dec 2018 21:15:14 +0000 (23:15 +0200)]
Add missing valid location descriptors

6 years agoValid cursor locations showed null
Pasi Kallinen [Wed, 5 Dec 2018 20:39:11 +0000 (22:39 +0200)]
Valid cursor locations showed null

When getting a cursor location, and there was no "valid" location
function defined, trying to go to the next or previous valid
location showed null.

Fix this by using the "interesting" locations if no valid ones.

6 years agoFake leash object is not attached
Pasi Kallinen [Wed, 5 Dec 2018 20:35:59 +0000 (22:35 +0200)]
Fake leash object is not attached

When farlooking at a fake leash object, make it explicitly not
be attached to a monster.

6 years agofix #H6292 - green slime & genocide
PatR [Wed, 5 Dec 2018 09:45:16 +0000 (01:45 -0800)]
fix #H6292 - green slime & genocide

Report suggested that if hero is turning into green slime, genociding
green slime should cure it.  I went another direction:  if life-saved
while dying due to turning into green slime, you survive polymorphed
into green slime form.  If green slimes have been genocided (probably
after becoming infected with slime or hero wouldn't have faced any
slimes to cause infection, but that could be from eating a glob of
green slime created prior to genocide, or from #wizintrinsic), you'll
immediately die again, this time from genocide.

6 years agosome updates to curses
nhmall [Wed, 5 Dec 2018 03:22:43 +0000 (22:22 -0500)]
some updates to curses

Tangles updates

6 years agoMerge branch 'NetHack-3.6.2-beta01' into macosx-minor
nhmall [Wed, 5 Dec 2018 02:39:16 +0000 (21:39 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into macosx-minor

6 years agofix #H7667 - maybe_reset_pick(), other bad context
PatR [Wed, 5 Dec 2018 01:10:15 +0000 (17:10 -0800)]
fix #H7667 - maybe_reset_pick(), other bad context

When deciding whether to discard interrupted lock/unlock context while
changing levels, maybe_reset_pick() checks whether xlock.box is being
carried.  But it was doing so after the old level had been saved and
memory for non-carried container there had been freed.

That led to a couple of other issues.  context.travelcc was using -1
for 'no cached value', but the fields of travelcc have type 'xchar' and
shouldn't be given negative values.  0 should be fine for 'no cache'.

Failed partial restore which occurred after old game's context had been
loaded would begin a new game with old game's stale context.  Restoring
goes out of its way to avoid that for 'flags' but didn't for 'context'.

6 years agoRevert "some fixes provided from Hardfought"
nhmall [Tue, 4 Dec 2018 16:59:41 +0000 (11:59 -0500)]
Revert "some fixes provided from Hardfought"

This reverts commit ab9e28d1aaa7a009e5051dcbee6bbbccf62804e5.

6 years agosome fixes provided from Hardfought
nhmall [Tue, 4 Dec 2018 16:58:05 +0000 (11:58 -0500)]
some fixes provided from Hardfought