Talk:Hack 1.0 source code

From NetHackWiki
Jump to navigation Jump to search

Some of the source files in the Harlow distributions at least of Hack have minor indentation glitches. This seems to be due to bugs in the Google Groups software. These bugs have since been fixed.

For example, in hack.apply.c lines 83-89, the Harlow distribution gives

			pline("Your weapon is welded to your hand!");
			return(0);
		}
 setuwep((struct obj *) 0);
	}
	current_ice_box->owt += obj->owt;
	freeinv(obj);

where a fresh download from Google Groups gives

			pline("Your weapon is welded to your hand!");
			return(0);
		}
		setuwep((struct obj *) 0);
	}
	current_ice_box->owt += obj->owt;
	freeinv(obj);

It seems clear enough which one this file is supposed to look like. Of course it compiles the same as before. -- Ray Chason 04:28, 2 September 2006 (UTC)

Strike "at least" in the above comment; Harlow's NetHack 1.3d squares with the UUNet archive. -- Ray Chason 06:10, 2 September 2006 (UTC)
I fixed that particular glitch now. If you are aware of any other such glitches, please fix them too. --ZeroOne 11:02, 2 September 2006 (UTC)