Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!sri-spam!ames!ptsfa!ihnp4!occrsh!occrsh.ATT.COM!authorplaceholder From: rct@occrsh.ATT.COM Newsgroups: comp.sources.d Subject: Re: nethack Message-ID: <147000002@occrsh.ATT.COM> Date: Fri, 31-Jul-87 15:57:00 EDT Article-I.D.: occrsh.147000002 Posted: Fri Jul 31 15:57:00 1987 Date-Received: Sun, 2-Aug-87 09:43:54 EDT References: <811@homxc.UUCP> Lines: 14 Nf-ID: #R:homxc.UUCP:-81100:occrsh.ATT.COM:147000002:000:608 Nf-From: occrsh.ATT.COM!rct Jul 31 14:57:00 1987 You don't mention your machine type, but I suspect that characters on your CPU are unsigned (as they are on my 3B2). Look in config.h for "typedef char schar;" and change the typedef to the suggested alternative. Likewise for "typedef char uchar;", although it probably isn't necessary. The problem in dosdoor() is that the terminating condition of the final for() loop isn't being recognized because the structure member (an unsigned character) is being checked to see if it's negative. (The actual number is -1.) --Bob Tracy AT&T Network & Data Systems Oklahoma City Works {most AT&T sites}!occrsh!rct