mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
copy in from cvs; cvs2svn fucked up big time
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
16
sail/game.c
16
sail/game.c
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: game.c,v 1.5 1997/10/13 19:44:09 christos Exp $ */
|
||||
/* $NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -38,21 +38,21 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)game.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: game.c,v 1.5 1997/10/13 19:44:09 christos Exp $");
|
||||
__RCSID("$NetBSD: game.c,v 1.10 2001/02/05 01:10:09 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include "extern.h"
|
||||
|
||||
int
|
||||
maxturns(ship, af)
|
||||
struct ship *ship;
|
||||
char *af;
|
||||
maxturns(struct ship *ship, char *af)
|
||||
{
|
||||
int turns;
|
||||
|
||||
turns = ship->specs->ta;
|
||||
if ((*af = (ship->file->drift > 1 && turns)) != 0) {
|
||||
*af = (ship->file->drift > 1 && turns);
|
||||
if (*af != '\0') {
|
||||
turns--;
|
||||
if (ship->file->FS == 1)
|
||||
turns = 0;
|
||||
@@ -61,9 +61,7 @@ char *af;
|
||||
}
|
||||
|
||||
int
|
||||
maxmove(ship, dir, fs)
|
||||
struct ship *ship;
|
||||
int dir, fs;
|
||||
maxmove(struct ship *ship, int dir, int fs)
|
||||
{
|
||||
int riggone = 0, Move, flank = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user