-/* $NetBSD: game.c,v 1.3 1995/04/22 10:36:56 cgd Exp $ */
+/* $NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $ */
/*
* Copyright (c) 1983, 1993
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
-static char sccsid[] = "@(#)game.c 8.1 (Berkeley) 5/31/93";
+static char sccsid[] = "@(#)game.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$NetBSD: game.c,v 1.3 1995/04/22 10:36:56 cgd Exp $";
+__RCSID("$NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $");
#endif
#endif /* not lint */
-#include "externs.h"
+#include <sys/types.h>
+#include "extern.h"
-maxturns(ship, af)
-register struct ship *ship;
-char *af;
+int
+maxturns(struct ship *ship, char *af)
{
- register int turns;
+ int turns;
turns = ship->specs->ta;
- if (*af = (ship->file->drift > 1 && turns)) {
+ *af = (ship->file->drift > 1 && turns);
+ if (*af != '\0') {
turns--;
if (ship->file->FS == 1)
turns = 0;
return turns;
}
-maxmove(ship, dir, fs)
-register struct ship *ship;
-int dir, fs;
+int
+maxmove(struct ship *ship, int dir, int fs)
{
- register int riggone = 0, Move, flank = 0;
+ int riggone = 0, Move, flank = 0;
Move = ship->specs->bs;
if (!ship->specs->rig1)