diff --git a/src/restore.c b/src/restore.c index 2a4f40c19..e7ebf32b4 100644 --- a/src/restore.c +++ b/src/restore.c @@ -667,13 +667,6 @@ unsigned int *stuckid, *steedid; if (otmp->owornmask) setworn(otmp, otmp->owornmask); - if ((uball && !uchain) || (uchain && !uball)) { - impossible("restgamestate: lost ball & chain"); - /* poor man's unpunish() */ - setworn((struct obj *) 0, W_CHAIN); - setworn((struct obj *) 0, W_BALL); - } - /* reset weapon so that player will get a reminder about "bashing" during next fight when bare-handed or wielding an unconventional item; for pick-axe, we aren't able to distinguish between having @@ -916,6 +909,13 @@ register int fd; if (otmp->owornmask) setworn(otmp, otmp->owornmask); + if ((uball && !uchain) || (uchain && !uball)) { + impossible("restgamestate: lost ball & chain"); + /* poor man's unpunish() */ + setworn((struct obj *) 0, W_CHAIN); + setworn((struct obj *) 0, W_BALL); + } + /* in_use processing must be after: * + The inventory has been read so that freeinv() works. * + The current level has been restored so billing information @@ -1135,7 +1135,7 @@ boolean ghostly; them is different now than when the level was saved */ restore_cham(mtmp); /* give hiders a chance to hide before their next move */ - if (ghostly || elapsed > (long) rnd(10)) + if (ghostly || (elapsed > 00 && elapsed > (long) rnd(10))) hide_monst(mtmp); } diff --git a/sys/winnt/Makefile.gcc b/sys/winnt/Makefile.gcc index 5fd3181da..358965369 100644 --- a/sys/winnt/Makefile.gcc +++ b/sys/winnt/Makefile.gcc @@ -90,8 +90,8 @@ TARGET_CPU=x86 # of your PDCurses C files which must already be resident on # your machine. # -#ADD_CURSES=Y -#PDCURSES_TOP=../../pdcurses +# ADD_CURSES=Y +# PDCURSES_TOP=../../pdcurses #4b Qt # @@ -404,12 +404,11 @@ PDCSRC = $(PDCURSES_TOP)/pdcurses PDCWINCON = $(PDCURSES_TOP)/wincon PDCLIBOBJS = $(O)addch.o $(O)addchstr.o $(O)addstr.o $(O)attr.o $(O)beep.o \ $(O)bkgd.o $(O)border.o $(O)clear.o $(O)color.o $(O)delch.o $(O)deleteln.o \ - $(O)deprec.o $(O)getch.o $(O)getstr.o $(O)getyx.o $(O)inch.o $(O)inchstr.o \ + $(O)getch.o $(O)getstr.o $(O)getyx.o $(O)inch.o $(O)inchstr.o \ $(O)initscr.o $(O)inopts.o $(O)insch.o $(O)insstr.o $(O)instr.o $(O)kernel.o \ $(O)keyname.o $(O)mouse.o $(O)move.o $(O)outopts.o $(O)overlay.o $(O)pad.o \ $(O)panel.o $(O)printw.o $(O)refresh.o $(O)scanw.o $(O)scr_dump.o $(O)scroll.o \ - $(O)slk.o $(O)termattr.o $(O)terminfo.o $(O)touch.o $(O)util.o $(O)window.o \ - $(O)debug.o + $(O)slk.o $(O)termattr.o $(O)touch.o $(O)util.o $(O)window.o $(O)debug.o PDCOBJS = $(O)pdcclip.o $(O)pdcdisp.o $(O)pdcgetsc.o $(O)pdckbd.o $(O)pdcscrn.o \ $(O)pdcsetsc.o $(O)pdcutil.o