diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-24 21:55:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-24 21:55:15 +0000 |
commit | 5eafc7fbbc99105a1f1fd7ce0f177b555dc44e5d (patch) | |
tree | 456557c0b9640c17d818d595fc4218d539f40464 /games/battlestar/com7.c | |
parent | 6919cadb832d489208ea47402a42805ca4c3e750 (diff) |
various linux-based patches; from linux people; sent by jsm@octomino.demon.co.uk
Diffstat (limited to 'games/battlestar/com7.c')
-rw-r--r-- | games/battlestar/com7.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/games/battlestar/com7.c b/games/battlestar/com7.c index 96e4369487f..74d5c1b91e8 100644 --- a/games/battlestar/com7.c +++ b/games/battlestar/com7.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com7.c,v 1.2 1997/06/30 19:56:32 kstailey Exp $ */ +/* $OpenBSD: com7.c,v 1.3 1997/08/24 21:55:04 deraadt Exp $ */ /* $NetBSD: com7.c,v 1.3 1995/03/21 15:07:12 cgd Exp $ */ /* @@ -42,8 +42,9 @@ static char rcsid[] = "$NetBSD: com7.c,v 1.3 1995/03/21 15:07:12 cgd Exp $"; #endif #endif /* not lint */ -#include "externs.h" +#include "extern.h" +int fight(enemy,strength) int enemy,strength; { @@ -55,15 +56,15 @@ int enemy,strength; int exhaustion; fighton: - time++; + btime++; snooze -= 5; - if (snooze > time) - exhaustion = CYCLE/(snooze - time); + if (snooze > btime) + exhaustion = CYCLE/(snooze - btime); else { puts("You collapse exhausted, and he pulverizes your skull."); die(); } - if (snooze - time < 20) + if (snooze - btime < 20) puts("You look tired! I hope you're able to fight."); next = getcom(auxbuf, LINELENGTH, "<fight!>-: ", 0); for (i=0; next && i < 10; i++) @@ -193,7 +194,7 @@ fighton: puts("he flees down the dark caverns."); clearbit(location[position].objects,DARK); injuries[SKULL] = 1; - followfight = time; + followfight = btime; return (0); } else{ @@ -238,7 +239,7 @@ fighton: case DROP: case DRAW: cypher(); - time--; + btime--; break; default: |