From ed884b9fa4509c09f0f7ab71efe57a4e83a2e055 Mon Sep 17 00:00:00 2001 From: Paul Janzen Date: Wed, 19 Aug 1998 07:42:28 +0000 Subject: tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD. --- games/trek/attack.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'games/trek/attack.c') diff --git a/games/trek/attack.c b/games/trek/attack.c index b1b0abb64ff..0bfb0d3b92e 100644 --- a/games/trek/attack.c +++ b/games/trek/attack.c @@ -1,3 +1,4 @@ +/* $OpenBSD: attack.c,v 1.2 1998/08/19 07:41:10 pjanzen Exp $ */ /* $NetBSD: attack.c,v 1.3 1995/04/22 10:58:26 cgd Exp $ */ /* @@ -37,11 +38,13 @@ #if 0 static char sccsid[] = "@(#)attack.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: attack.c,v 1.3 1995/04/22 10:58:26 cgd Exp $"; +static char rcsid[] = "$OpenBSD: attack.c,v 1.2 1998/08/19 07:41:10 pjanzen Exp $"; #endif #endif /* not lint */ -# include "trek.h" +#include +#include +#include "trek.h" /* ** Klingon Attack Routine @@ -73,15 +76,16 @@ static char rcsid[] = "$NetBSD: attack.c,v 1.3 1995/04/22 10:58:26 cgd Exp $"; ** Casualties can also occur. */ +void attack(resting) -int resting; /* set if attack while resting */ + int resting; /* set if attack while resting */ { - register int hit, i, l; - int maxhit, tothit, shldabsb; - double chgfac, propor, extradm; - double dustfac, tothe; - int cas; - int hitflag; + register int hit, i, l; + int maxhit, tothit, shldabsb; + double chgfac, propor, extradm; + double dustfac, tothe; + int cas; + int hitflag; if (Move.free) return; @@ -189,6 +193,4 @@ int resting; /* set if attack while resting */ /* allow Klingons to move after attacking */ klmove(1); - - return; } -- cgit v1.2.3