controlling u.ustuck
Setting or clearing u.ustuck now requires that context.botl be set, so make a new routine to take care of both instead of manipulating that pointer directly.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 save.c $NHDT-Date: 1559994625 2019/06/08 11:50:25 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.121 $ */
|
||||
/* NetHack 3.6 save.c $NHDT-Date: 1581886866 2020/02/16 21:01:06 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.153 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2009. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -216,7 +216,7 @@ dosave0()
|
||||
/* these pointers are no longer valid, and at least u.usteed
|
||||
* may mislead place_monster() on other levels
|
||||
*/
|
||||
u.ustuck = (struct monst *) 0;
|
||||
set_ustuck((struct monst *) 0);
|
||||
u.usteed = (struct monst *) 0;
|
||||
|
||||
for (ltmp = (xchar) 1; ltmp <= maxledgerno(); ltmp++) {
|
||||
|
||||
Reference in New Issue
Block a user