From b2c40c5606888fb0f424ed2d7c7cbfcc747ae9bf Mon Sep 17 00:00:00 2001 From: jwise Date: Thu, 4 Jan 2001 06:16:51 +0000 Subject: Normalize signature of ship handling functions -- struct ship * from and struct ship * to are now always the first two args. --- sail/dr_3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sail/dr_3.c') diff --git a/sail/dr_3.c b/sail/dr_3.c index 3efe79f1..36deff08 100644 --- a/sail/dr_3.c +++ b/sail/dr_3.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_3.c,v 1.12 2001/01/04 03:51:23 jwise Exp $ */ +/* $NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dr_3.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dr_3.c,v 1.12 2001/01/04 03:51:23 jwise Exp $"); +__RCSID("$NetBSD: dr_3.c,v 1.13 2001/01/04 06:16:51 jwise Exp $"); #endif #endif /* not lint */ @@ -51,7 +51,7 @@ void moveall(void); static int stillmoving(int); static int is_isolated(struct ship *); static int push(struct ship *, struct ship *); -static void step(int, struct ship *, char *); +static void step(struct ship *, int, char *); void sendbp(struct ship *, struct ship *, int, int); int is_toughmelee(struct ship *, struct ship *, int, int); void reload(void); @@ -124,7 +124,7 @@ moveall(void) if (!sp->file->movebuf[k]) sp->file->movebuf[k+1] = '\0'; else if (sp->file->dir) - step(sp->file->movebuf[k], sp, &moved[n]); + step(sp, sp->file->movebuf[k], &moved[n]); n++; } /* @@ -233,7 +233,7 @@ push(struct ship *from, struct ship *to) } static void -step(int com, struct ship *sp, char *moved) +step(struct ship *sp, int com, char *moved) { int dist; -- cgit v1.2.3