diff --git a/doc/fixes36.2 b/doc/fixes36.2 index e08f5de5c..01b2f33b7 100644 --- a/doc/fixes36.2 +++ b/doc/fixes36.2 @@ -336,6 +336,7 @@ a config file line with OPTIONS=symset:default, roguesymset:RogueEpyx meant to have color; that was due to an errant init_symbols() call during the processing of symset:default done after RogueEpyx had already been processed +avoid potential segfault when doing 'more information' lookup tty: turn off an optimization that is the suspected cause of Windows reported partial status lines following level changes tty: ensure that current status fields are always copied to prior status diff --git a/src/monmove.c b/src/monmove.c index 5db117001..fb6341c8a 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 monmove.c $NHDT-Date: 1545525307 2018/12/23 00:35:07 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.110 $ */ +/* NetHack 3.6 monmove.c $NHDT-Date: 1545596010 2018/12/23 20:13:30 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.111 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2006. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1327,14 +1327,16 @@ register int after; && ((levl[nix][niy].doormask & (D_LOCKED | D_CLOSED)) != 0) && can_fog(mtmp)) { if (sawmon) { - remove_monster(nix, niy), place_monster(mtmp, omx, omy); + remove_monster(nix, niy); + place_monster(mtmp, omx, omy); newsym(nix, niy), newsym(omx, omy); } if (vamp_shift(mtmp, &mons[PM_FOG_CLOUD], sawmon)) { ptr = mtmp->data; /* update cached value */ } if (sawmon) { - remove_monster(omx, omy), place_monster(mtmp, nix, niy); + remove_monster(omx, omy); + place_monster(mtmp, nix, niy); newsym(omx, omy), newsym(nix, niy); } } diff --git a/src/pager.c b/src/pager.c index f7fdb7087..f4f097eb3 100644 --- a/src/pager.c +++ b/src/pager.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 pager.c $NHDT-Date: 1545361111 2018/12/21 02:58:31 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.143 $ */ +/* NetHack 3.6 pager.c $NHDT-Date: 1545595360 2018/12/23 20:02:40 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.144 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2018. */ /* NetHack may be freely redistributed. See license for details. */ @@ -646,9 +646,9 @@ char *supplemental_name; The Eyes of the Overworld" simplified above to "lenses named The Eyes of the Overworld", now reduced to "The Eyes of the Overworld", skip "The" as with base name processing) */ - if (!strncmpi(alt, "a ", 2) - || !strncmpi(alt, "an ", 3) - || !strncmpi(alt, "the ", 4)) + if (alt && (!strncmpi(alt, "a ", 2) + || !strncmpi(alt, "an ", 3) + || !strncmpi(alt, "the ", 4))) alt = index(alt, ' ') + 1; /* remove charges or "(lit)" or wizmode "(N aum)" */ if ((ep = strstri(dbase_str, " (")) != 0 && ep > dbase_str)