Thread View: net.games.hack
2 messages
2 total messages
Started by mcdaniel
Tue, 22 Jan 1985 04:40
Bix Fug
Author: mcdaniel
Date: Tue, 22 Jan 1985 04:40
Date: Tue, 22 Jan 1985 04:40
83 lines
3065 bytes
3065 bytes
Problem: When using the 'c' command, the user is asked
Do you want to name an individual object? [yn]
However, the game does not verify that the reply is one of 'y'
or 'n'. In particular, if the reply is not 'y', it is assumed
to be 'n'.
Fix: Add an extra test in hack.do_name.c. If reply is 'y', call one
object; if 'n', call a class of objects; otherwise, exit the 'c'
command. Context diffs:
---------------------------------------------------------------------
*** old:hack.do_name.c Mon Jan 21 01:43:28 1985
--- hack.do_name.c Mon Jan 21 01:50:11 1985
***************
*** 134,139
ddocall()
{
register struct obj *obj;
pline("Do you want to name an individual object? [yn] ");
if(readchar() == 'y'){
--- 134,141 -----
ddocall()
{
register struct obj *obj;
+ /* bug fix: temp var needed */
+ char reply;
pline("Do you want to name an individual object? [yn] ");
/* bug fix: read into var, and accept only y or n */
***************
*** 136,142
register struct obj *obj;
pline("Do you want to name an individual object? [yn] ");
! if(readchar() == 'y'){
obj = getobj("#", "name");
if(obj) do_oname(obj);
} else {
--- 138,146 -----
char reply;
pline("Do you want to name an individual object? [yn] ");
! /* bug fix: read into var, and accept only y or n */
! reply = readchar();
! if(reply == 'y'){
obj = getobj("#", "name");
if(obj) do_oname(obj);
} else if (reply == 'n') {
***************
*** 139,145
if(readchar() == 'y'){
obj = getobj("#", "name");
if(obj) do_oname(obj);
! } else {
obj = getobj("?!=/", "call");
if(obj) docall(obj);
}
--- 143,149 -----
if(reply == 'y'){
obj = getobj("#", "name");
if(obj) do_oname(obj);
! } else if (reply == 'n') {
obj = getobj("?!=/", "call");
if(obj) docall(obj);
}
--------------------------------------------------------------------
If I am confused, ignorant, or wrong, please enlighten me.
UNIX is a trademark of ATT. VAX and PDP are trademarks of Digital
Equipment Corp. The opinions expressed above are my own, and are not
in any way indicative of the opinions of any other entity or group of
entities in this universe. Void where taxed or prohibited by law.
This space for rent. She bop, she bop.
Tim McDaniel
Usenet: ...{pur-ee|ihnp4|convex}!uiucdcs!mcdaniel
Csnet: mcdaniel%uiuc@csnet-relay.arpa (really!)
Re: Bix Fug (??)
Author: Rob van Leeuwen
Date: Sat, 26 Jan 1985 17:30
Date: Sat, 26 Jan 1985 17:30
17 lines
1063 bytes
1063 bytes
I think this "bug" is a feature. Let's say you want to CALL (not NAME) a certain wand, a wand labelled 'v'. What you type is this: cvv This means: c : call v : answer to [yn] question, -> 'n' v : object to call Since the action of calling something is much more performed than naming something, it is only logical that you have to type an explicit 'y' when you want HACK to do something that doesn't occur that much. -- Rob van Leeuwen ..!mcvax!vu44!botter!ark!rob
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads