arromdee@crabcake (Kenneth Arromdee) (10/28/89)
Once again a stopgap patch is needed. If you read a scroll of blank paper and
then save the game, the game will core dump or panic upon restoring. The
problem was a "fix" for the HUP cheat which didn't work. Please save a copy of
your old file since patch 6 will use the unmodified level 5 patched source
(without this stopgap fix).
*** restore.c.old Fri Oct 27 23:38:34 1989
--- restore.c Fri Oct 27 23:39:15 1989
***************
*** 108,118 ****
--- 108,120 ----
else otmp2->nobj = otmp;
mread(fd, (genericptr_t) otmp, (unsigned) xl + sizeof(struct obj));
if(!otmp->o_id) otmp->o_id = flags.ident++;
+ #if 0
/* Things that were marked "in_use" when the game was saved (eg. via
* the infamous "HUP" cheat get used up here.
*/
if(otmp->olet != ARMOR_SYM && otmp->olet != WEAPON_SYM
&& otmp->otyp != PICK_AXE && otmp->in_use) useup(otmp);
+ #endif
#ifdef TUTTI_FRUTTI
if(ghostly && otmp->otyp == SLIME_MOLD) {
for(oldf=oldfruit; oldf; oldf=oldf->nextf)
--
"The workers ceased to be afraid of the bosses. It's as if they suddenly
threw off their chains." -- a Soviet journalist, about the Donruss coal strike
Kenneth Arromdee (UUCP: ....!jhunix!arromdee; BITNET: arromdee@jhuvm;
INTERNET: arromdee@crabcake.cs.jhu.edu)