diff options
| author | dholland <dholland@NetBSD.org> | 2009-03-14 22:52:52 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2009-03-14 22:52:52 +0000 |
| commit | e98a44895c7ca5a00b080fce0b3cbb16bcdff859 (patch) | |
| tree | a74a3e03e0056c3de3d2b751b6dea1f59baec1c7 /sail/pl_3.c | |
| parent | 5e8d1f0902b592fc872212ecccaca23c8ce85231 (diff) | |
| download | bsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.tar.gz 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/pl_3.c')
| -rw-r--r-- | sail/pl_3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/pl_3.c b/sail/pl_3.c index 36552faa..58774e01 100644 --- a/sail/pl_3.c +++ b/sail/pl_3.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_3.c,v 1.18 2009/03/14 19:35:13 dholland Exp $ */ +/* $NetBSD: pl_3.c,v 1.19 2009/03/14 22:52:52 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pl_3.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_3.c,v 1.18 2009/03/14 19:35:13 dholland Exp $"); +__RCSID("$NetBSD: pl_3.c,v 1.19 2009/03/14 22:52:52 dholland Exp $"); #endif #endif /* not lint */ @@ -233,8 +233,8 @@ grapungrap(void) case 'g': if (dieroll() < 3 || ms->nationality == capship(sp)->nationality) { - Write(W_GRAP, ms, sp->file->index, 0, 0, 0); - Write(W_GRAP, sp, player, 0, 0, 0); + send_grap(ms, sp->file->index); + send_grap(sp, player); Msg("Attempt succeeds!"); makesignal(ms, "grappled with $$", sp); } else |
