diff options
author | dholland <dholland@NetBSD.org> | 2008-02-04 01:07:01 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-04 01:07:01 +0000 |
commit | c015d2f9aa4fbe23c4e9e50742dcebee298b0287 (patch) | |
tree | e91ac487debab9f56e77d6b3e583915ffd2a5852 /larn/object.c | |
parent | 350aac765d3e94494f9b3db3a16f3b09d454bd5b (diff) | |
download | bsdgames-darwin-c015d2f9aa4fbe23c4e9e50742dcebee298b0287.tar.gz bsdgames-darwin-c015d2f9aa4fbe23c4e9e50742dcebee298b0287.tar.zst bsdgames-darwin-c015d2f9aa4fbe23c4e9e50742dcebee298b0287.zip |
More assorted cleanup merged from larn 12.2.
Diffstat (limited to 'larn/object.c')
-rw-r--r-- | larn/object.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/larn/object.c b/larn/object.c index 691f9780..74b4d97b 100644 --- a/larn/object.c +++ b/larn/object.c @@ -1,18 +1,16 @@ -/* $NetBSD: object.c,v 1.13 2008/02/03 21:24:59 dholland Exp $ */ +/* $NetBSD: object.c,v 1.14 2008/02/04 01:07:01 dholland Exp $ */ /* object.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: object.c,v 1.13 2008/02/03 21:24:59 dholland Exp $"); +__RCSID("$NetBSD: object.c,v 1.14 2008/02/04 01:07:01 dholland Exp $"); #endif /* not lint */ #include "header.h" #include "extern.h" /* - *************** - LOOK_FOR_OBJECT - *************** + lookforobject subroutine to look for an object and give the player his options if an object was found. @@ -22,7 +20,7 @@ lookforobject() { int i, j; if (c[TIMESTOP]) - return; /* can't find objects is time is stopped */ + return; /* can't find objects if time is stopped */ i = item[playerx][playery]; if (i == 0) return; @@ -537,10 +535,6 @@ finditem(int theitem) /* - ******* - OSTAIRS - ******* - subroutine to process the stair cases if dir > 0 the up else down */ @@ -608,10 +602,6 @@ ostairs(dir) /* - ********* - OTELEPORTER - ********* - subroutine to handle a teleport trap +/- 1 level maximum */ void @@ -649,10 +639,6 @@ oteleport(err) /* - ******* - OPOTION - ******* - function to process a potion */ void @@ -862,10 +848,6 @@ quaffpotion(pot) /* - ******* - OSCROLL - ******* - function to process a magic scroll */ void |