diff options
author | dholland <dholland@NetBSD.org> | 2008-02-23 19:09:00 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-23 19:09:00 +0000 |
commit | 2ba03115f1cf7fb9bf924654405626d047f940ad (patch) | |
tree | 62fdb14ff8d1fcf9d19498427fc93c1a052a60f6 /monop/cards.c | |
parent | 9e08b8f561982e00fcb27264931b54cbbfaf5cb6 (diff) | |
download | bsdgames-darwin-2ba03115f1cf7fb9bf924654405626d047f940ad.tar.gz bsdgames-darwin-2ba03115f1cf7fb9bf924654405626d047f940ad.tar.zst bsdgames-darwin-2ba03115f1cf7fb9bf924654405626d047f940ad.zip |
Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.
Diffstat (limited to 'monop/cards.c')
-rw-r--r-- | monop/cards.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/monop/cards.c b/monop/cards.c index bf878ee9..0064c4ae 100644 --- a/monop/cards.c +++ b/monop/cards.c @@ -1,4 +1,4 @@ -/* $NetBSD: cards.c,v 1.17 2008/02/19 09:45:02 dholland Exp $ */ +/* $NetBSD: cards.c,v 1.18 2008/02/23 19:09:00 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: cards.c,v 1.17 2008/02/19 09:45:02 dholland Exp $"); +__RCSID("$NetBSD: cards.c,v 1.18 2008/02/23 19:09:00 dholland Exp $"); #endif #endif /* not lint */ @@ -237,3 +237,18 @@ printmes() printline(); fflush(stdout); } + +/* + * This routine returns the players get-out-of-jail-free card + * to a deck. + */ +void +ret_card(plr) + PLAY *plr; +{ + plr->num_gojf--; + if (CC_D.gojf_used) + CC_D.gojf_used = FALSE; + else + CH_D.gojf_used = FALSE; +} |