[net.unix-wizards] hack bug report

newton@cit-vax (Mike Newton) (01/11/85)

The recent distribution to hack had an error in it that caused a Rust monster
that hit you when you were not wearing a helmet to crash.    The correct code
is copied below.  The file is hack.mhitu.c.

enjoy,

--mike


	case 'R':
		if(tmp && uarmh && !uarmh->rustfree &&
		    (int) uarmh->spe >= -1) {
			pline("Your helmet rusts!");
			uarmh->spe--;
		} else
		if(ctmp && uarm && !uarm->rustfree &&		/* -- MON */
		 uarm->otyp < STUDDED_LEATHER_ARMOR &&
		 (int)uarm->spe >= -1) {
			pline("Your armor rusts!");
			uarm->spe--;
		}
		break;

mr@hou2h.UUCP (M.RINDSBERG) (01/17/85)

There is not one person whom I know that has gos hack to work on
SYS V R2.  Can anyone help me ???

							Mark

nkn@asgb.UUCP (01/19/85)

What is this doing in net.unix-wizards?!!!

Neil Nelson
Burrougs Corporation
Advanced Systems Group
. . .sdcsvax!bmcg!asgb!nkn