]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - sail/pl_main.c
Increase spending on vowels. No object file diffs.
[bsdgames-darwin.git] / sail / pl_main.c
index e13136a7852827ac4c1f39ce851d729379132d1b..619a99f1d2c4732facb2e7eb63fb2c18df727dea 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: pl_main.c,v 1.23 2009/03/14 19:36:42 dholland Exp $    */
+/*     $NetBSD: pl_main.c,v 1.26 2009/03/15 03:33:56 dholland Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)pl_main.c  8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pl_main.c,v 1.23 2009/03/14 19:36:42 dholland Exp $");
+__RCSID("$NetBSD: pl_main.c,v 1.26 2009/03/15 03:33:56 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -45,6 +45,7 @@ __RCSID("$NetBSD: pl_main.c,v 1.23 2009/03/14 19:36:42 dholland Exp $");
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include "display.h"
 #include "extern.h"
 #include "player.h"
 #include "restart.h"
@@ -180,7 +181,7 @@ reprint:
        mf = ms->file;
        mc = ms->specs;
 
-       Write(W_BEGIN, ms, 0, 0, 0, 0);
+       send_begin(ms);
        if (Sync() < 0)
                leave(LEAVE_SYNC);
 
@@ -191,7 +192,7 @@ reprint:
                        longjmp(restart, MODE_DRIVER);
                        /*NOTREACHED*/
                case -1:
-                       perror("fork");
+                       warn("fork");
                        leave(LEAVE_FORK);
                        break;
                default:
@@ -213,7 +214,7 @@ reprint:
                else
                    captain[strlen(captain) - 1] = '\0';
        }
-       Writestr(W_CAPTAIN, ms, captain);
+       send_captain(ms, captain);
        for (n = 0; n < 2; n++) {
                char buf[10];
 
@@ -249,9 +250,9 @@ reprint:
        printf("\n");
        fflush(stdout);
        initscreen();
-       draw_board();
+       display_redraw();
        snprintf(message, sizeof message, "Captain %s assuming command",
                        captain);
-       Writestr(W_SIGNAL, ms, message);
+       send_signal(ms, message);
        newturn(0);
 }