X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/f12b51f99bbe8bb6ad7eca12b047ba9b46836ee6..9e7fd816e02e66962d482b02209f112e1d5789fc:/monop/jail.c?ds=inline diff --git a/monop/jail.c b/monop/jail.c index f6ad0979..917b7a0a 100644 --- a/monop/jail.c +++ b/monop/jail.c @@ -1,4 +1,4 @@ -/* $NetBSD: jail.c,v 1.6 2003/08/07 09:37:28 agc Exp $ */ +/* $NetBSD: jail.c,v 1.9 2008/02/24 01:57:34 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,11 +34,11 @@ #if 0 static char sccsid[] = "@(#)jail.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: jail.c,v 1.6 2003/08/07 09:37:28 agc Exp $"); +__RCSID("$NetBSD: jail.c,v 1.9 2008/02/24 01:57:34 dholland Exp $"); #endif #endif /* not lint */ -#include "monop.ext" +#include "monop.h" /* * This routine uses a get-out-of-jail-free card to get the @@ -60,21 +60,6 @@ card() cur_p->in_jail = 0; } -/* - * 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; -} - /* * This routine deals with paying your way out of jail. */ @@ -112,8 +97,7 @@ moveit: return TRUE; } return FALSE; - } - else { + } else { printf("Double roll gets you out.\n"); goto moveit; }