Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!teddy!panda!talcott!harvard!seismo!brl-tgr!tgr!newton@cit-vax
From: newton@cit-vax (Mike Newton)
Newsgroups: net.unix-wizards
Subject: hack bug report
Message-ID: <7203@brl-tgr.ARPA>
Date: Thu, 10-Jan-85 22:39:47 EST
Article-I.D.: brl-tgr.7203
Posted: Thu Jan 10 22:39:47 1985
Date-Received: Sun, 13-Jan-85 08:10:57 EST
Sender: news@brl-tgr.ARPA
Organization: Ballistic Research Lab
Lines: 23


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;