summaryrefslogtreecommitdiffstats
path: root/monop
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-23 22:20:35 +0000
committerdholland <dholland@NetBSD.org>2008-02-23 22:20:35 +0000
commit59b92506bcb68b77b0568fd6c0aa6c0dc14ab490 (patch)
tree9d905d89cdb020d8e250a72355bb53edb7047dce /monop
parent1ddc2a9f456fd76be3119dbaf2c5afccc9781cfc (diff)
downloadbsdgames-darwin-59b92506bcb68b77b0568fd6c0aa6c0dc14ab490.tar.gz
bsdgames-darwin-59b92506bcb68b77b0568fd6c0aa6c0dc14ab490.tar.zst
bsdgames-darwin-59b92506bcb68b77b0568fd6c0aa6c0dc14ab490.zip
Fix from OpenBSD: don't say "1 houses".
Diffstat (limited to 'monop')
-rw-r--r--monop/rent.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/monop/rent.c b/monop/rent.c
index 4ba229d5..2061de5e 100644
--- a/monop/rent.c
+++ b/monop/rent.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rent.c,v 1.6 2003/08/07 09:37:29 agc Exp $ */
+/* $NetBSD: rent.c,v 1.7 2008/02/23 22:20:35 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)rent.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: rent.c,v 1.6 2003/08/07 09:37:29 agc Exp $");
+__RCSID("$NetBSD: rent.c,v 1.7 2008/02/23 22:20:35 dholland Exp $");
#endif
#endif /* not lint */
@@ -64,8 +64,9 @@ rent(sqp)
if (pp->houses == 0)
printf("rent is %d\n", rnt=pp->rent[0] * 2);
else if (pp->houses < 5)
- printf("with %d houses, rent is %d\n",
- pp->houses, rnt=pp->rent[pp->houses]);
+ printf("with %d house%s, rent is %d\n",
+ pp->houses, pp->houses == 1 ? "" : "s",
+ rnt=pp->rent[pp->houses]);
else
printf("with a hotel, rent is %d\n",
rnt=pp->rent[pp->houses]);