summaryrefslogtreecommitdiffstats
path: root/larn/object.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-07-13 20:21:32 +0000
committerchristos <christos@NetBSD.org>1997-07-13 20:21:32 +0000
commitc4681dc027d7cdf9019c8e8af1ee47dc45446afd (patch)
tree1d922bff58f97096e0fa5cfe8d743f4ff8444291 /larn/object.c
parent3638c6860decfacc7974156434d4dfdd31a47443 (diff)
downloadbsdgames-darwin-c4681dc027d7cdf9019c8e8af1ee47dc45446afd.tar.gz
bsdgames-darwin-c4681dc027d7cdf9019c8e8af1ee47dc45446afd.tar.zst
bsdgames-darwin-c4681dc027d7cdf9019c8e8af1ee47dc45446afd.zip
gtime -> gltime to avoid conflict in time.h
Diffstat (limited to 'larn/object.c')
-rw-r--r--larn/object.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/larn/object.c b/larn/object.c
index 6f701bff..7ee92633 100644
--- a/larn/object.c
+++ b/larn/object.c
@@ -1,5 +1,5 @@
#ifndef lint
-static char rcsid[] = "$NetBSD: object.c,v 1.6 1995/04/22 07:34:09 cgd Exp $";
+static char rcsid[] = "$NetBSD: object.c,v 1.7 1997/07/13 20:21:38 christos Exp $";
#endif /* not lint */
/* object.c Larn is copyrighted 1986 by Noah Morgan. */
@@ -576,7 +576,7 @@ read_scroll(typ)
case 6: c[AGGRAVATE]+=800; return; /* aggravate monsters */
- case 7: gtime += (i = rnd(1000) - 850); /* time warp */
+ case 7: gltime += (i = rnd(1000) - 850); /* time warp */
if (i>=0) lprintf("\nYou went forward in time by %d mobuls",(long)((i+99)/100));
else lprintf("\nYou went backward in time by %d mobuls",(long)(-(i+99)/100));
adjtime((long)i); /* adjust time for time warping */
@@ -763,7 +763,7 @@ ohome()
iven[i]=0; /* remove the potion of cure dianthroritis from inventory */
clear(); lprcat("Congratulations. You found a potion of cure dianthroritis.\n");
lprcat("\nFrankly, No one thought you could do it. Boy! Did you surprise them!\n");
- if (gtime>TIMELIMIT)
+ if (gltime>TIMELIMIT)
{
lprcat("\nThe doctor has the sad duty to inform you that your daughter died!\n");
lprcat("You didn't make it in time. In your agony, you kill the doctor,\nyour wife, and yourself! Too bad!\n");
@@ -784,7 +784,7 @@ ohome()
{
clear(); lprintf("Welcome home %s. Latest word from the doctor is not good.\n",logname);
- if (gtime>TIMELIMIT)
+ if (gltime>TIMELIMIT)
{
lprcat("\nThe doctor has the sad duty to inform you that your daughter died!\n");
lprcat("You didn't make it in time. In your agony, you kill the doctor,\nyour wife, and yourself! Too bad!\n");
@@ -792,7 +792,7 @@ ohome()
}
lprcat("\nThe diagnosis is confirmed as dianthroritis. He guesses that\n");
- lprintf("your daughter has only %d mobuls left in this world. It's up to you,\n",(long)((TIMELIMIT-gtime+99)/100));
+ lprintf("your daughter has only %d mobuls left in this world. It's up to you,\n",(long)((TIMELIMIT-gltime+99)/100));
lprintf("%s, to find the only hope for your daughter, the very rare\n",logname);
lprcat("potion of cure dianthroritis. It is rumored that only deep in the\n");
lprcat("depths of the caves can this potion be found.\n\n\n");