MCPcopy Create free account
hub / github.com/NetHack/NetHack / restlevelstate

Function restlevelstate

src/restore.c:741–749  ·  view source on GitHub ↗

update game state pointers to those valid for the current level (so we don't dereference a wild u.ustuck when saving game state, for instance) */

Source from the content-addressed store, hash-verified

739/* update game state pointers to those valid for the current level (so we
740 don't dereference a wild u.ustuck when saving game state, for instance) */
741staticfn void
742restlevelstate(void)
743{
744 /*
745 * Note: restoring steed and engulfer/holder/holdee is now handled
746 * in getlev() and there's nothing left for restlevelstate() to do.
747 */
748 return;
749}
750
751/* after getlev(), put current level into a level/lock file;
752 essential when splitting a save file into individual level files */

Callers 1

dorecoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected