diff options
author | 1997-07-15 10:21:45 +0000 | |
---|---|---|
committer | 1997-07-15 10:21:45 +0000 | |
commit | 6fb200d40672c94a357aee6c04ae8003991e6d19 (patch) | |
tree | 78e1cffd9a1229f9b3e76f5955551ed8656c14c9 | |
parent | Use assembler sources our of arch/m68k where applicable. (diff) | |
download | wireguard-openbsd-6fb200d40672c94a357aee6c04ae8003991e6d19.tar.xz wireguard-openbsd-6fb200d40672c94a357aee6c04ae8003991e6d19.zip |
gtime var -> gltime var
-rw-r--r-- | games/larn/create.c | 2 | ||||
-rw-r--r-- | games/larn/data.c | 2 | ||||
-rw-r--r-- | games/larn/diag.c | 6 | ||||
-rw-r--r-- | games/larn/header.h | 2 | ||||
-rw-r--r-- | games/larn/main.c | 2 | ||||
-rw-r--r-- | games/larn/movem.c | 4 | ||||
-rw-r--r-- | games/larn/object.c | 8 | ||||
-rw-r--r-- | games/larn/regen.c | 2 | ||||
-rw-r--r-- | games/larn/scores.c | 2 | ||||
-rw-r--r-- | games/larn/store.c | 10 |
10 files changed, 20 insertions, 20 deletions
diff --git a/games/larn/create.c b/games/larn/create.c index 80b336f2e12..9b926bf1a04 100644 --- a/games/larn/create.c +++ b/games/larn/create.c @@ -32,7 +32,7 @@ makeplayer() } playerx=rnd(MAXX-2); playery=rnd(MAXY-2); oldx=0; oldy=25; - gtime=0; /* time clock starts at zero */ + gltime=0; /* time clock starts at zero */ cbak[SPELLS] = -50; for (i=0; i<6; i++) c[i]=12; /* make the attributes, ie str, int, etc. */ recalc(); diff --git a/games/larn/data.c b/games/larn/data.c index 0bc9fe97513..acef0ca61f7 100644 --- a/games/larn/data.c +++ b/games/larn/data.c @@ -155,7 +155,7 @@ short lasthx=0,lasthy=0; /* location of monster last hit by player */ short nobeep=0; /* true if program is not to beep */ unsigned long randx=33601; /* the random number seed */ long initialtime=0; /* time playing began */ -long gtime=0; /* the clock for the game */ +long gltime=0; /* the clock for the game */ long outstanding_taxes=0; /* present tax bill from score file */ long c[100],cbak[100]; /* the character description arrays */ int enable_scroll=0; /* constant for enabled/disabled scrolling regn */ diff --git a/games/larn/diag.c b/games/larn/diag.c index e9ca5953220..51dee60cbd3 100644 --- a/games/larn/diag.c +++ b/games/larn/diag.c @@ -171,7 +171,7 @@ savegame(fname) times(&cputime); /* get cpu time */ c[CPUTIME] += (cputime.tms_utime+cputime.tms_stime)/60; lwrite((char*)&c[0],100*sizeof(long)); - lprint((long)gtime); lprc(level); + lprint((long)gltime); lprc(level); lprc(playerx); lprc(playery); lwrite((char*)iven,26); lwrite((char*)ivenarg,26*sizeof(short)); for (k=0; k<MAXSCROLL; k++) lprc(scrollname[k][0]); @@ -213,7 +213,7 @@ restoregame(fname) if (beenhere[k]) lrfill((char*)&cell[k*MAXX*MAXY],sizeof(struct cel)*MAXY*MAXX); - lrfill((char*)&c[0],100*sizeof(long)); gtime = lrint(); + lrfill((char*)&c[0],100*sizeof(long)); gltime = lrint(); level = c[CAVELEVEL] = lgetc(); playerx = lgetc(); playery = lgetc(); lrfill((char*)iven,26); lrfill((char*)ivenarg,26*sizeof(short)); @@ -271,7 +271,7 @@ restoregame(fname) c[EXPERIENCE] = skill[24]; raiseexperience((long)tmp); } - getlevel(); lasttime=gtime; + getlevel(); lasttime=gltime; } /* diff --git a/games/larn/header.h b/games/larn/header.h index 01db710b07b..eb6fca897ed 100644 --- a/games/larn/header.h +++ b/games/larn/header.h @@ -349,7 +349,7 @@ extern short iarg[MAXX][MAXY],ivenarg[],lasthx,lasthy,lastnum,lastpx,lastpy; extern short nobeep,oldx,oldy,playerx,playery,level; extern int dayplay,enable_scroll,srcount,yrepcount,userid,wisid,lfd,fd; extern uid_t uid, euid; -extern long initialtime,outstanding_taxes,skill[],gtime,c[],cbak[]; +extern long initialtime,outstanding_taxes,skill[],gltime,c[],cbak[]; extern unsigned long randx; extern struct cel *cell; extern struct monst monster[]; diff --git a/games/larn/main.c b/games/larn/main.c index 11f07de1fda..39b08969039 100644 --- a/games/larn/main.c +++ b/games/larn/main.c @@ -273,7 +273,7 @@ qshowstr() { for (i=22; i<84; i++) for (j=0; j<=k; j++) if (i==iven[j]) show3(j); k=0; } - lprintf("\nElapsed time is %d. You have %d mobuls left",(long)((gtime+99)/100+1),(long)((TIMELIMIT-gtime)/100)); + lprintf("\nElapsed time is %d. You have %d mobuls left",(long)((gltime+99)/100+1),(long)((TIMELIMIT-gltime)/100)); more(); nosignal=sigsav; } diff --git a/games/larn/movem.c b/games/larn/movem.c index 82b361e3c20..f02e1e432b2 100644 --- a/games/larn/movem.c +++ b/games/larn/movem.c @@ -102,7 +102,7 @@ movemt(i,j) switch(monst=mitem[i][j]) /* for half speed monsters */ { case TROGLODYTE: case HOBGOBLIN: case METAMORPH: case XVART: - case INVISIBLESTALKER: case ICELIZARD: if ((gtime & 1) == 1) return; + case INVISIBLESTALKER: case ICELIZARD: if ((gltime & 1) == 1) return; }; if (c[SCAREMONST]) /* choose destination randomly if scared */ @@ -237,7 +237,7 @@ mmove(aa,bb,cc,dd) }; if (tmp == TROLL) /* if a troll regenerate him */ - if ((gtime & 1) == 0) + if ((gltime & 1) == 0) if (monster[tmp].hitpoints > hitp[cc][dd]) hitp[cc][dd]++; if (i==OTRAPARROW) /* arrow hits monster */ diff --git a/games/larn/object.c b/games/larn/object.c index 6f701bffa86..57af4a98204 100644 --- a/games/larn/object.c +++ b/games/larn/object.c @@ -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"); diff --git a/games/larn/regen.c b/games/larn/regen.c index 2f68643a5de..81d8ccd08da 100644 --- a/games/larn/regen.c +++ b/games/larn/regen.c @@ -25,7 +25,7 @@ regen() if (d[STRENGTH]<3) { d[STRENGTH]=3; flag=1; } if ((d[HASTESELF]==0) || ((d[HASTESELF] & 1) == 0)) - gtime++; + gltime++; if (d[HP] != d[HPMAX]) if (d[REGENCOUNTER]-- <= 0) /* regenerate hit points */ diff --git a/games/larn/scores.c b/games/larn/scores.c index 79518a62cba..8822b9ab2a0 100644 --- a/games/larn/scores.c +++ b/games/larn/scores.c @@ -407,7 +407,7 @@ new1sub(score,i,whoo,taxes) { strcpy(p->who,whoo); p->score=score; p->hardlev=c[HARDGAME]; p->suid=userid; - p->timeused=gtime/100; + p->timeused=gltime/100; } } diff --git a/games/larn/store.c b/games/larn/store.c index 3f49ba61faf..35f49f1ab9d 100644 --- a/games/larn/store.c +++ b/games/larn/store.c @@ -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; |