Article View: net.games.hack
Article #566A few minor bug fixes and enhancements
From: Andries Brouwer
Date: Fri, 10 May 1985 14:51
Date: Fri, 10 May 1985 14:51
52 lines
2250 bytes
2250 bytes
As hpscdi!jon remarked, two lines of code have been inadvertently
dropped from hack.dog.c, making it more difficult to train your dog.
Fix in hack.dog.c
145a146,148 (this was an old fix)
> /* maybe we tamed him while being swallowed --jgm */
> if(!udist) return(0);
>
152a156,157
> edog->dropdist = udist; /* hpscdi!jon */
> edog->droptime = moves;
He also remarked a typo in hack.tty.c. Another player with '@' as kill
character complained about not being able to genocide all @'s. Yes, what
a pity!
Fix in hack.tty.c:
122,127c201,203
< } else if(c == kill_char || c == '\177') { /* Robert Viduya */
< while(bufp != obufp) {
< bufp--;
< putstr("\b \b");
< }
< } else if(isprint(c)) {
---
> } else if(' ' <= c && c < '\177') {
> /* avoid isprint() - some people don't have it
> ' ' is not always a printing char */
132a209,214
> } else if(c == kill_char || c == '\177') { /* Robert Viduya */
> /* this test last - @ might be the kill_char */
> while(bufp != obufp) {
> bufp--;
> putstr("\b \b");
> }
196c278
< multi += 10*multi+foo-'0';
---
> multi = 10*multi+foo-'0';
Finally, there was a typo in the routine lookaround() in hack.c that
would cause you to walk into known traps with commands like "fh" or '^H'.
Also, people want to continue eating/digging/counting_their_money even
when a sleeping Leprechaun is nearby. Well, now they can.
Fix in hack.c:
519c515 (in lookaround())
< if(x == u.ux+u.dx && y == u.uy+u.dx) goto stop;
---
> if(x == u.ux+u.dx && y == u.uy+u.dy) goto stop;
571a568 (in monster_nearby())
> !mtmp->mfroz && !mtmp->msleep && /* aplvax!jcn */
Technical Details
Message-ID:
<662@mcvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!aebShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site mcvax.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!aeb From: aeb@mcvax.UUCP (Andries Brouwer) Newsgroups: net.games.hack Subject: A few minor bug fixes and enhancements Message-ID: <662@mcvax.UUCP> Date: Fri, 10-May-85 10:51:46 EDT Article-I.D.: mcvax.662 Posted: Fri May 10 10:51:46 1985 Date-Received: Sun, 12-May-85 02:07:05 EDT Reply-To: aeb@mcvax.UUCP (Andries Brouwer) Organization: CWI, Amsterdam Lines: 52