[net.games.hack] 1.0.3 engrave bug

robin@medstar.UUCP (Robin Cutshaw) (08/02/85)

I had no problems compiling 1.0.3 with the ed mods, but...

This was in the ed script for hack1.0.3 ( hack.engrave.c , doengrave() ) :

	if(otmp == &zeroobj)
		otmp = 0;
	if(otmp->otyp == WAN_FIRE && otmp->spe) {

Obviously wrong, change to...

	if(otmp == &zeroobj)
		otmp = (char *)0;
	if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) {


Also, one can no longer throw objects while on Elbereth and not screw it up.

-robin

(P.S. IBM Xenix diffs will follow shortly)
-- 
----
Robin Cutshaw
uucp:   ...!{akgua,gatech}!medstar!robin