update display after change
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Sat, 29 Oct 1983 14:51:24 +0000 (06:51 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Sat, 29 Oct 1983 14:51:24 +0000 (06:51 -0800)
SCCS-vsn: games/sail/pl_3.c 1.6
SCCS-vsn: games/sail/pl_5.c 1.2
SCCS-vsn: games/sail/pl_6.c 1.2

usr/src/games/sail/pl_3.c
usr/src/games/sail/pl_5.c
usr/src/games/sail/pl_6.c

index 00b1bb6..0302e19 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pl_3.c      1.5 83/10/28";
+static char *sccsid = "@(#)pl_3.c      1.6 83/10/28";
 #endif
 
 #include "player.h"
 #endif
 
 #include "player.h"
@@ -170,6 +170,7 @@ acceptcombat()
                Signal("Unable to fire %s broadside",
                        (struct ship *)0, r ? "right" : "left");
        }
                Signal("Unable to fire %s broadside",
                        (struct ship *)0, r ? "right" : "left");
        }
+       draw_stat();
 }
 
 grapungrap()
 }
 
 grapungrap()
index 733eac8..0ea2f2f 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pl_5.c      1.1 83/10/28";
+static char *sccsid = "@(#)pl_5.c      1.2 83/10/28";
 #endif
 
 #include "player.h"
 #endif
 
 #include "player.h"
@@ -21,10 +21,6 @@ acceptmove()
                Signal("Unable to move", (struct ship *)0);
                return;
        }
                Signal("Unable to move", (struct ship *)0);
                return;
        }
-       if (*movebuf) {
-               Signal("Already moved.", (struct ship *)0);
-               return;
-       }
 
        ta = maxturns(ms, &af);
        ma = maxmove(ms, mf->dir, 0);
 
        ta = maxturns(ms, &af);
        ma = maxmove(ms, mf->dir, 0);
@@ -161,6 +157,7 @@ acceptboard()
                        (struct ship *)0, 1);
                parties(crew, ms, 1, c);
        }
                        (struct ship *)0, 1);
                parties(crew, ms, 1, c);
        }
+       draw_slot();
 }
 
 parties(crew, to, isdefense, buf)
 }
 
 parties(crew, to, isdefense, buf)
index c3b0541..08deb81 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)pl_6.c      1.1 83/10/28";
+static char *sccsid = "@(#)pl_6.c      1.2 83/10/28";
 #endif
 
 #include "player.h"
 #endif
 
 #include "player.h"
@@ -32,7 +32,6 @@ repair()
        }
        repaired = 1;
        if (++*repairs >= 3) {
        }
        repaired = 1;
        if (++*repairs >= 3) {
-               *repairs = 0;
                switch (c) {
                case 'h':
                        if (ptr->hull < ptr->guns/4)
                switch (c) {
                case 'h':
                        if (ptr->hull < ptr->guns/4)
@@ -69,9 +68,15 @@ repair()
                                c = 0;
                        break;
                }
                                c = 0;
                        break;
                }
-               if (!c)
+               if (!c) {
                        Signal("Repairs completed.", (struct ship *)0);
                        Signal("Repairs completed.", (struct ship *)0);
+                       *repairs = 2;
+               } else {
+                       *repairs = 0;
+                       draw_stat();
+               }
        }
        }
+       draw_slot();
 }
 
 turned()
 }
 
 turned()