]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - sail/pl_2.c
Changed the type of data_table to be unsigned char[] instead of char[],
[bsdgames-darwin.git] / sail / pl_2.c
index e1b975f1165fbb64e2f98e0ec01adcb126d0c788..75be55fb9dc6afd15ccc7a7ceb227a9050653749 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: pl_2.c,v 1.3 1995/04/22 10:37:08 cgd Exp $     */
+/*     $NetBSD: pl_2.c,v 1.11 2003/08/07 09:37:43 agc Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)pl_2.c     8.1 (Berkeley) 5/31/93";
 #else
-static char rcsid[] = "$NetBSD: pl_2.c,v 1.3 1995/04/22 10:37:08 cgd Exp $";
+__RCSID("$NetBSD: pl_2.c,v 1.11 2003/08/07 09:37:43 agc Exp $");
 #endif
 #endif /* not lint */
 
+#include <signal.h>
+#include "extern.h"
 #include "player.h"
 
-play()
+void
+play(void)
 {
-       register struct ship *sp;
+       struct ship *sp;
 
        for (;;) {
                switch (sgetch("~\b", (struct ship *)0, 0)) {
@@ -62,7 +62,7 @@ play()
                        unfoulplayer();
                        break;
                case 'v':
-                       Signal("%s", (struct ship *)0, version);
+                       Msg("%s", version);
                        break;
                case 'b':
                        acceptboard();
@@ -80,7 +80,7 @@ play()
                        repair();
                        break;
                case 'B':
-                       Signal("'Hands to stations!'", (struct ship *)0);
+                       Msg("'Hands to stations!'");
                        unboard(ms, ms, 1);     /* cancel DBP's */
                        unboard(ms, ms, 0);     /* cancel offense */
                        break;
@@ -96,10 +96,10 @@ play()
                        mf->loadR = L_EMPTY;
                        mf->readyL = R_EMPTY;
                        mf->readyR = R_EMPTY;
-                       Signal("Broadsides unloaded", (struct ship *)0);
+                       Msg("Broadsides unloaded");
                        break;
                case 'q':
-                       Signal("Type 'Q' to quit", (struct ship *)0);
+                       Msg("Type 'Q' to quit");
                        break;
                case 'Q':
                        leave(LEAVE_QUIT);
@@ -111,7 +111,7 @@ play()
                        break;
                case 'i':
                        if ((sp = closestenemy(ms, 0, 1)) == 0)
-                               Signal("No more ships left.");
+                               Msg("No more ships left.");
                        else
                                eyeball(sp);
                        break;