diff options
author | christos <christos@NetBSD.org> | 1997-10-13 21:02:57 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-10-13 21:02:57 +0000 |
commit | bd10b531314ec546d25fd238f27d94c74a726567 (patch) | |
tree | a6f88adfc60ca14d2851035c0a9fce98fcc96438 /sail/dr_1.c | |
parent | 7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c (diff) | |
download | bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.gz bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.zst bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.zip |
- make sure that the arguments to the printf like functions are correct
- add a makemsg() function to accompany makesignal.
Diffstat (limited to 'sail/dr_1.c')
-rw-r--r-- | sail/dr_1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sail/dr_1.c b/sail/dr_1.c index cbcf9839..e3f4e510 100644 --- a/sail/dr_1.c +++ b/sail/dr_1.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_1.c,v 1.5 1997/10/13 19:43:14 christos Exp $ */ +/* $NetBSD: dr_1.c,v 1.6 1997/10/13 21:03:09 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dr_1.c,v 1.5 1997/10/13 19:43:14 christos Exp $"); +__RCSID("$NetBSD: dr_1.c,v 1.6 1997/10/13 21:03:09 christos Exp $"); #endif #endif /* not lint */ @@ -189,7 +189,7 @@ int key; unboard(to, from, 0); subtract(from, totalfrom, crewfrom, fromcap, pcfrom); subtract(to, totalto, crewto, tocap, pcto); - makesignal(from, "boarders from %s repelled", to); + makemsg(from, "boarders from %s repelled", to->shipname); (void) sprintf(message, "killed in melee: %d. %s: %d", totalto, from->shipname, totalfrom); Write(W_SIGNAL, to, 1, (long) message, 0, 0, 0); |