summaryrefslogtreecommitdiffstats
path: root/larn/store.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/store.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/store.c')
-rw-r--r--larn/store.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/larn/store.c b/larn/store.c
index 3f49ba61..24226e09 100644
--- a/larn/store.c
+++ b/larn/store.c
@@ -1,4 +1,4 @@
-/* $NetBSD: store.c,v 1.4 1995/03/23 08:34:20 cgd Exp $ */
+/* $NetBSD: store.c,v 1.5 1997/07/13 20:21:41 christos Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91";
#else
-static char rcsid[] = "$NetBSD: store.c,v 1.4 1995/03/23 08:34:20 cgd Exp $";
+static char rcsid[] = "$NetBSD: store.c,v 1.5 1997/07/13 20:21:41 christos Exp $";
#endif
#endif /* not lint */
@@ -395,7 +395,7 @@ oschool()
time_used += coursetime[i-'a']*100;
if (time_used > 0)
{
- gtime += time_used;
+ gltime += time_used;
course[i-'a']++; /* remember that he has taken that course */
c[HP] = c[HPMAX]; c[SPELLS] = c[SPELLMAX]; /* he regenerated */
@@ -455,12 +455,12 @@ ointerest()
if (c[BANKACCOUNT]<0) c[BANKACCOUNT] = 0;
else if ((c[BANKACCOUNT]>0) && (c[BANKACCOUNT]<500000))
{
- i = (gtime-lasttime)/100; /* # mobuls elapsed */
+ i = (gltime-lasttime)/100; /* # mobuls elapsed */
while ((i-- > 0) && (c[BANKACCOUNT]<500000))
c[BANKACCOUNT] += c[BANKACCOUNT]/250;
if (c[BANKACCOUNT]>500000) c[BANKACCOUNT]=500000; /* interest limit */
}
- lasttime = (gtime/100)*100;
+ lasttime = (gltime/100)*100;
}
static short gemorder[26]={0}; /* the reference to screen location for each */
@@ -479,7 +479,7 @@ obanksub()
if (iven[i]==OLARNEYE)
{
- gemvalue[i]=250000-((gtime*7)/100)*100;
+ gemvalue[i]=250000-((gltime*7)/100)*100;
if (gemvalue[i]<50000) gemvalue[i]=50000;
}
else gemvalue[i] = (255&ivenarg[i])*100;
@@ -568,7 +568,7 @@ appraise(gemstone)
lprcat("yes.\n Just one moment please \n"); nap(1000);
if (gemstone==OLARNEYE)
{
- amt = 250000-((gtime*7)/100)*100;
+ amt = 250000-((gltime*7)/100)*100;
if (amt<50000) amt=50000;
}
else amt = (255 & ivenarg[j]) * 100;