Article View: net.games.hack
Article #700Re: minor bug fix for the look command
From: ab
Date: Tue, 28 May 1985 13:00
Date: Tue, 28 May 1985 13:00
50 lines
1967 bytes
1967 bytes
Sorry... the levitation fix should be as follows:
*** hack.invent.c.orig Mon Apr 15 15:11:48 1985
--- hack.invent.c Tue May 28 09:23:41 1985
***************
*** 626,631
int ct = 0;
if(!u.uswallow) {
otmp0 = o_at(u.ux, u.uy);
gold = g_at(u.ux, u.uy);
}
--- 626,638 -----
int ct = 0;
if(!u.uswallow) {
+ if(Blind) {
+ pline("You try to feel what is lying here on the floor.");
+ if(Levitation) {
+ pline("You cannot reach the floor!");
+ return(1);
+ }
+ }
otmp0 = o_at(u.ux, u.uy);
gold = g_at(u.ux, u.uy);
}
***************
*** 633,640
pline("You %s no objects here.", verb);
return(!!Blind);
}
-
- if(Blind) pline("You try to feel what is lying here on the floor.");
cornline(0, "Things that are here:");
for(otmp = otmp0; otmp; otmp = otmp->nobj) {
if(otmp->ox == u.ux && otmp->oy == u.uy) {
--- 640,645 -----
pline("You %s no objects here.", verb);
return(!!Blind);
}
cornline(0, "Things that are here:");
for(otmp = otmp0; otmp; otmp = otmp->nobj) {
if(otmp->ox == u.ux && otmp->oy == u.uy) {
--
Andreas Bormann ab@unido.UUCP
University of Dortmund N 51 29' 05" E 07 24' 42"
West Germany
Technical Details
Message-ID:
<nf38300012@unido.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!abReferences:
<nf38300011@unido.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notesnews 0.1 (unido 12/05/84); site unido.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!ab From: ab@unido.UUCP Newsgroups: net.games.hack Subject: Re: minor bug fix for the look command Message-ID: <nf38300012@unido.UUCP> Date: Tue, 28-May-85 09:00:00 EDT Article-I.D.: unido.nf38300012 Posted: Tue May 28 09:00:00 1985 Date-Received: Sat, 1-Jun-85 12:29:45 EDT References: <nf38300011@unido.UUCP> Sender: notes@unido.UUCP Lines: 51 Nf-ID: #R:unido:38300011:unido:38300012:000:1293 Nf-From: unido!ab May 28 11:00:00 1985