+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
-static char *sccsid = "@(#)parties.c 2.1 83/10/31";
-#endif
+static char sccsid[] = "@(#)parties.c 5.1 (Berkeley) %G%";
+#endif not lint
#include "externs.h"
return 0;
}
-Snagged(ship, isgrap)
-struct ship *ship;
-char isgrap;
-{
- register int Snags = 0;
- register struct snag *sp, *sq;
-
- sp = isgrap ? ship->file->grapples : ship->file->fouls;
- sq = sp + NSHIP;
- for (; sp < sq; sp++)
- if (sp->turnfoul)
- Snags++;
- return Snags;
-}
-
-Snagged2(ship, to, isgrap, isX)
-struct ship *ship, *to;
-char isgrap, isX;
-{
- register Snags = 0;
- register struct snag *sp, *sq;
-
- sp = isgrap ? ship->file->grapples : ship->file->fouls;
- sq = sp + NSHIP;
- for (; sp < sq; sp++) {
- if (sp->turnfoul && sp->toship == to
- && (!isX || sp->turnfoul < turn - 1
- && ship->file->loadwith==L_GRAPE))
- Snags++;
- }
- return Snags;
-}
-
unboard(ship, to, isdefense)
register struct ship *ship, *to;
register char isdefense;