static char *sccsid
= "@(#)pl_4.c 2.2 83/11/14";
if (windspeed
== 6 || windspeed
== 5 && mc
->class > 4)
if (sgetch("Increase to Full sails? ",
(struct ship
*)0, 1) == 'y') {
Write(W_FS
, ms
, 0, 1, 0, 0, 0);
if (sgetch("Reduce to Battle sails? ",
(struct ship
*)0, 1) == 'y') {
Write(W_FS
, ms
, 0, 0, 0, 0, 0);
Signal("Sails rent to pieces", (struct ship
*)0);
sgetstr("Mesage? ", p
, sizeof buf
- 2);
Write(W_SIGNAL
, ms
, 1, (int)buf
, 0, 0, 0);
register struct ship
*sp
;
sgetstr("What ship? ", buf
, sizeof buf
);
c
= *countryname
[sp
->nationality
];
if ((c
== *buf
|| tolower(c
) == *buf
|| colours(sp
) == *buf
)
&& (sp
->file
->stern
== buf
[1] || sterncolour(sp
) == buf
[1]
register struct ship
*sp
;
if (sp
->file
->captain
[0])
return sp
->file
->captain
;
else if (sp
->file
->struck
)
else if (sp
->file
->captured
!= 0)
register struct ship
*ship
;
if (ship
->file
->dir
!= 0) {
Signal("Sail ho! (range %d, %s)",
(struct ship
*)0, range(ms
, ship
), saywhat(ship
, 0));
i
= portside(ms
, ship
, 1) - mf
->dir
;
Signal("%s (%c%c) %s %s %s.",
ship
, countryname
[ship
->nationality
],
classname
[ship
->specs
->class], directionname
[i
]);