summaryrefslogtreecommitdiffstats
path: root/sail/dr_4.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-14 22:52:52 +0000
committerdholland <dholland@NetBSD.org>2009-03-14 22:52:52 +0000
commite98a44895c7ca5a00b080fce0b3cbb16bcdff859 (patch)
treea74a3e03e0056c3de3d2b751b6dea1f59baec1c7 /sail/dr_4.c
parent5e8d1f0902b592fc872212ecccaca23c8ce85231 (diff)
downloadbsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.tar.gz
bsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.tar.zst
bsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.zip
Create some abstraction for sending messages.
Make a send and receive function for each possible message. Make these have useful argument signatures. Hide the list of message codes inside sync.c.
Diffstat (limited to 'sail/dr_4.c')
-rw-r--r--sail/dr_4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/dr_4.c b/sail/dr_4.c
index 347ca86b..db45a258 100644
--- a/sail/dr_4.c
+++ b/sail/dr_4.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_4.c,v 1.14 2009/03/14 19:35:13 dholland Exp $ */
+/* $NetBSD: dr_4.c,v 1.15 2009/03/14 22:52:52 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dr_4.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: dr_4.c,v 1.14 2009/03/14 19:35:13 dholland Exp $");
+__RCSID("$NetBSD: dr_4.c,v 1.15 2009/03/14 22:52:52 dholland Exp $");
#endif
#endif /* not lint */
@@ -64,7 +64,7 @@ grap(struct ship *from, struct ship *to)
if (capship(from)->nationality != capship(to)->nationality &&
dieroll() > 2)
return;
- Write(W_GRAP, from, to->file->index, 0, 0, 0);
- Write(W_GRAP, to, from->file->index, 0, 0, 0);
+ send_grap(from, to->file->index);
+ send_grap(to, from->file->index);
makesignal(from, "grappled with $$", to);
}