Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!genrad!panda!talcott!harvard!seismo!ut-sally!ut-ngp!wca From: wca@ut-ngp.UUCP (William C. Anderson) Newsgroups: net.sources.games Subject: Re: rogue clone compile problem Message-ID: <3025@ut-ngp.UUCP> Date: Wed, 5-Mar-86 09:12:53 EST Article-I.D.: ut-ngp.3025 Posted: Wed Mar 5 09:12:53 1986 Date-Received: Fri, 7-Mar-86 08:21:28 EST References: <1256@princeton.UUCP> Distribution: net Organization: UTexas Computation Center, Austin, Texas Lines: 63 The changes I've made to the rogue clone are in play.c and pack.c. These changes fix a compile-time bug in play.c and a runtime bug (sorta) in pack.c. The play.c changes are: (lines 81-105) case 'd': drop(); break; /* CHANGE */ case '^P': remessage(); break; case '>': if (check_down()) { return; } break; case '<': if (check_up()) { return; } break; case 'I': single_inventory(); break; /* CHANGE */ case '^R': wrefresh(curscr); break; case 'T': take_off(); break; Note that these added case switch chars (cntrl-P and cntrl-R) make Clone play like rogue 5.3. The change in pack.c is: (lines 206-221) get_pack_letter(prompt, mask) char *prompt; unsigned short mask; { short first_miss = 1; short ch; message(prompt, 0); /* ADD THIS LINE */ while (!is_pack_letter(ch = getchar())) { putchar(7); fflush(stdout); if (first_miss) { WHICH: message(prompt, 0); first_miss = 0; } } This change corrects a tendency of Clone to be a bit too terse when handling commands which require another keystroke (e.g. t(hrow), p(ut on), w(ield), etc.). William Anderson Computation Center The University of Texas at Austin