]> granicus.if.org Git - nethack/commit
umpteenth hangup bit
authornethack.rankin <nethack.rankin>
Sun, 11 Feb 2007 03:36:15 +0000 (03:36 +0000)
committernethack.rankin <nethack.rankin>
Sun, 11 Feb 2007 03:36:15 +0000 (03:36 +0000)
commitaa97ea65b17a8d14d5c70151b3453f148a1c9e00
tree218921beb47eaea40c1ea034366fdb772f042607
parenta9b7b19b95ee5fe0b2c9b4e0ee2eb205a5c4a416
umpteenth hangup bit

     From a bug report:  hangup during
screen updating at tail end of successful restore didn't create a new
save file when disconnecting.  Use his suggestion for moving the setting
of program_state.something_worth_saving sooner, before the save file is
deleted.  To do that, restlevelstate() needs to come sooner too.  I think
this is safe enough to include in the branch code.

     For the trunk, I'm not sure whether the SAFERHANGUP config will work
well here.  It has to survive long enough under autopilot to enter moveloop
before the chance to save kicks in.
src/restore.c