🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Steven Grady Tue, 22 Jan 1985 01:45
core dump
#78
Author: Steven Grady
Date: Tue, 22 Jan 1985 01:45
7 lines
804 bytes
I got my fdirest core dump from hack
I was playing as Wizard (not just a wizard, THE wizard) and read
a scroll of damage weapon while I was confused...
I haven't checked the source yet, but just thought I'd mention
it.
		Steven Grady
			grady@ucbmiro.Berkeley
Re: core dump in Hack
#116
Author: play
Date: Wed, 23 Jan 1985 14:20
36 lines
1894 bytes
In article <4297@ucbvax.ARPA> grady@ucbvax.ARPA (Steven Grady) writes:
>I got my fdirest core dump from hack
>I was playing as Wizard (not just a wizard, THE wizard) and read
>a scroll of damage weapon while I was confused...
>I haven't checked the source yet, but just thought I'd mention
>it.
>		Steven Grady
>			grady@ucbmiro.Berkeley

Yes, from the source one immediately sees what the problem is:
the codes for ENCHANT_WEAPON and DAMAGE_WEAPON should be exact
analogues, but for some reason the test whether you were wielding
anything got lost under SCR_DAMAGE_WEAPON. Here is the fix.

*** ../Distr_1.0.1/hack.read.c	Mon Jan 21 22:56:19 1985
--- hack.read.c	Wed Jan 23 11:13:35 1985
***************
*** 158,163
  			if(!chwepon(scroll, 1)) return(1);
  		break;
  	case SCR_DAMAGE_WEAPON:
  		if(confused) {
  			pline("Your %s glows purple for a moment.",
  				objects[uwep->otyp].oc_name);

--- 158,167 -----
  			if(!chwepon(scroll, 1)) return(1);
  		break;
  	case SCR_DAMAGE_WEAPON:
+ 		if(!uwep) {
+ 			strange_feeling(scroll);
+ 			return(1);
+ 		}
  		if(confused) {
  			pline("Your %s glows purple for a moment.",
  				objects[uwep->otyp].oc_name);
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads