Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!gatech!akgua!akguc!mtune!mtuxo!houxm!ihnp4!cbosgd!ukma!ukecc!edward From: edward@ukecc.UUCP (Edward C. Bennett) Newsgroups: net.sources.d Subject: Re: Problems with larn Message-ID: <510@ukecc.UUCP> Date: Wed, 2-Jul-86 10:56:31 EDT Article-I.D.: ukecc.510 Posted: Wed Jul 2 10:56:31 1986 Date-Received: Sat, 5-Jul-86 05:30:14 EDT References: <503@ukecc.UUCP> Reply-To: edward@ukecc.UUCP (Edward C. Bennett) Organization: Univ. of KY, Engineering Computing Center Lines: 23 Keywords: 3B20 SystemV In article <503@ukecc.UUCP> edward@ukecc.UUCP (Edward C. Bennett) writes: >Has anyone else out there tried running larn on a 3B20? (I spose a >3B2 would be close enough.) I have the game here but it has the >odd bug that only the 'j' and 'l' movement commands work. This makes >reasonable moving impossible. Before I spend hours tracking this bug >down, has anybody else fixed it already?? > Well, I found the problem. As I suspected it was caused by the fact that a 3B20 has unsigned characters. In display.c, near the function moveplayer(), there are two arrays, diroffx[] and diroffy[], that contain values to move the player. They both have '-1's in them and were declared as char arrays. Hence, the -1's became 255's. Changing 'char' to 'short' solved the problem. -- Edward C. Bennett UUCP: ihnp4!cbosgd!ukma!ukecc!edward Kentucky: The state that needs Japan to bring it into the 20th century. "Goodnight M.A."