🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.hack
Article #17

Bug dealing with punishment

#17
From: Craig Ruff
Date: Wed, 18 Dec 1985 18:11
54 lines
2123 bytes
One of our valiant hackers unconvered this bug.  If you are punished
and climb the stairs while levetated, the ball and chain are lost to
limbo.  That is ok until you try to move, when the second bug is flushed
in freeobj trying to free an object not on the list for machines that
do not like null pointers.

*** hack.do.c.orig	Tue Dec 17 21:09:51 1985
--- hack.do.c	Tue Dec 17 21:10:28 1985
***************
*** 181,188
  		    u.ux = xupstair;	/* this will confuse the player! */
  		    u.uy = yupstair;
  		}
! 		if(Punished && !Levitation){
! 			pline("With great effort you climb the stairs.");
  			placebc(1);
  		}
  	    } else {

--- 181,189 -----
  		    u.ux = xupstair;	/* this will confuse the player! */
  		    u.uy = yupstair;
  		}
! 		if(Punished){
! 			if (!Levitation)
! 				pline("With great effort you climb the stairs.");
  			placebc(1);
  		}
  	    } else {

*** hack.invent.c.orig	Wed Jul 24 16:53:39 1985
--- hack.invent.c	Wed Dec 18 10:44:43 1985
***************
*** 132,139
  
  	if(obj == fobj) fobj = fobj->nobj;
  	else {
! 		for(otmp = fobj; otmp->nobj != obj; otmp = otmp->nobj)
! 			if(!otmp) panic("error in freeobj");
  		otmp->nobj = obj->nobj;
  	}
  }

--- 132,141 -----
  
  	if(obj == fobj) fobj = fobj->nobj;
  	else {
! 		for(otmp = fobj; otmp && otmp->nobj != obj; otmp = otmp->nobj)
! 		;
! 		if (!otmp)
! 			panic("error in freeobj");
  		otmp->nobj = obj->nobj;
  	}
  }
Technical Details
Message-ID: <325@cisden.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!genrad!panda!talcott!harvard!seismo!hao!nbires!boulder!cisden!ruff

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site cisden.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!genrad!panda!talcott!harvard!seismo!hao!nbires!boulder!cisden!ruff
From: ruff@cisden.UUCP (Craig Ruff)
Newsgroups: net.games.hack
Subject: Bug dealing with punishment
Message-ID: <325@cisden.UUCP>
Date: Wed, 18-Dec-85 13:11:51 EST
Article-I.D.: cisden.325
Posted: Wed Dec 18 13:11:51 1985
Date-Received: Sat, 21-Dec-85 05:30:30 EST
Reply-To: ruff@cisden.UUCP (Craig Ruff)
Organization: ConTel Information Systems, Denver
Lines: 54