-/* NetHack 3.6 end.c $NHDT-Date: 1446510332 2015/11/03 00:25:32 $ $NHDT-Branch: master $:$NHDT-Revision: 1.102 $ */
+/* NetHack 3.6 end.c $NHDT-Date: 1447576343 2015/11/15 08:32:23 $ $NHDT-Branch: master $:$NHDT-Revision: 1.103 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
/* clean up unneeded windows */
if (have_windows) {
wait_synch();
+ free_pickinv_cache(); /* extra persistent window if perm_invent */
if (WIN_INVEN != WIN_ERR)
destroy_nhwindow(WIN_INVEN), WIN_INVEN = WIN_ERR;
display_nhwindow(WIN_MESSAGE, TRUE);
}
if (!done_stopprint) {
- Sprintf(
- pbuf, "%s %s the %s...", Goodbye(), plname,
- how != ASCENDED
- ? (const char *) ((flags.female && urole.name.f)
+ Sprintf(pbuf, "%s %s the %s...", Goodbye(), plname,
+ (how != ASCENDED)
+ ? (const char *) ((flags.female && urole.name.f)
? urole.name.f
: urole.name.m)
- : (const char *) (flags.female ? "Demigoddess" : "Demigod"));
+ : (const char *) (flags.female ? "Demigoddess" : "Demigod"));
putstr(endwin, 0, pbuf);
putstr(endwin, 0, "");
}
putstr(endwin, 0, pbuf);
}
if (!done_stopprint) {
- Sprintf(
- pbuf,
+ Sprintf(pbuf,
"You were level %d with a maximum of %d hit point%s when you %s.",
- u.ulevel, u.uhpmax, plur(u.uhpmax), ends[how]);
+ u.ulevel, u.uhpmax, plur(u.uhpmax), ends[how]);
putstr(endwin, 0, pbuf);
putstr(endwin, 0, "");
}
-/* NetHack 3.6 invent.c $NHDT-Date: 1446516832 2015/11/03 02:13:52 $ $NHDT-Branch: master $:$NHDT-Revision: 1.178 $ */
+/* NetHack 3.6 invent.c $NHDT-Date: 1447576348 2015/11/15 08:32:28 $ $NHDT-Branch: master $:$NHDT-Revision: 1.179 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
then regrown to full inventory, possibly being resized in the process */
static winid cached_pickinv_win = WIN_ERR;
-/* #ifdef FREE_ALL_MEMORY */
void
free_pickinv_cache()
{
cached_pickinv_win = WIN_ERR;
}
}
-/* #endif */
/*
* Internal function used by display_inventory and getobj that can display
-/* NetHack 3.6 save.c $NHDT-Date: 1447124658 2015/11/10 03:04:18 $ $NHDT-Branch: master $:$NHDT-Revision: 1.93 $ */
+/* NetHack 3.6 save.c $NHDT-Date: 1447576350 2015/11/15 08:32:30 $ $NHDT-Branch: master $:$NHDT-Revision: 1.94 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
free_autopickup_exceptions();
/* miscellaneous */
- free_pickinv_cache();
+ /* free_pickinv_cache(); -- done from done()... */
free_symsets();
#endif /* FREE_ALL_MEMORY */
#ifdef STATUS_VIA_WINDOWPORT