sprintf doesn't necessarily return its first arg
[unix-history] / usr / src / games / sail / parties.c
index 118af99..34043e7 100644 (file)
@@ -1,6 +1,12 @@
+/*
+ * 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
 #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"
 
 
 #include "externs.h"
 
@@ -30,39 +36,6 @@ char isdefense;
        return 0;
 }
 
        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;
 unboard(ship, to, isdefense)
 register struct ship *ship, *to;
 register char isdefense;