summaryrefslogtreecommitdiffstats
path: root/monop/morg.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-19 09:05:55 +0000
committerdholland <dholland@NetBSD.org>2008-02-19 09:05:55 +0000
commit1a1a9dae518b681460ca7928cb42a28794a09e4c (patch)
tree0a4db19c9fcfe9b8a5cf15c31e174ece51e6bd5c /monop/morg.c
parentde2d3e68f3a90caf1e3da56a6b8619b0fa3f1aed (diff)
downloadbsdgames-darwin-1a1a9dae518b681460ca7928cb42a28794a09e4c.tar.gz
bsdgames-darwin-1a1a9dae518b681460ca7928cb42a28794a09e4c.tar.zst
bsdgames-darwin-1a1a9dae518b681460ca7928cb42a28794a09e4c.zip
Remove transient thingy that wasn't supposed to see the light of day, and
finish dealing with some local variables that shadow a global. (hi dholland)
Diffstat (limited to 'monop/morg.c')
-rw-r--r--monop/morg.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/monop/morg.c b/monop/morg.c
index c9873f42..23194726 100644
--- a/monop/morg.c
+++ b/monop/morg.c
@@ -1,4 +1,4 @@
-/* $NetBSD: morg.c,v 1.11 2008/01/28 06:16:13 dholland Exp $ */
+/* $NetBSD: morg.c,v 1.12 2008/02/19 09:05:55 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)morg.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: morg.c,v 1.11 2008/01/28 06:16:13 dholland Exp $");
+__RCSID("$NetBSD: morg.c,v 1.12 2008/02/19 09:05:55 dholland Exp $");
#endif
#endif /* not lint */
@@ -83,7 +83,6 @@ static void fix_ex(int);
void
mortgage()
{
-#define prop __suk
int propnum;
for (;;) {
@@ -139,13 +138,13 @@ set_mlist()
* This routine actually mortgages the property.
*/
static void
-m(prop)
- int prop;
+m(propnum)
+ int propnum;
{
int price;
- price = board[prop].cost/2;
- board[prop].desc->morg = TRUE;
+ price = board[propnum].cost/2;
+ board[propnum].desc->morg = TRUE;
printf("That got you $%d\n",price);
cur_p->money += price;
}
@@ -158,7 +157,7 @@ m(prop)
void
unmortgage()
{
- int prop;
+ int propnum;
for (;;) {
if (set_umlist() == 0) {
@@ -171,11 +170,11 @@ unmortgage()
unm(square[0]);
return;
}
- prop = getinp("Which property do you want to unmortgage? ",
+ propnum = getinp("Which property do you want to unmortgage? ",
names);
- if (prop == num_good)
+ if (propnum == num_good)
return;
- unm(square[prop]);
+ unm(square[propnum]);
}
}
@@ -202,13 +201,13 @@ set_umlist()
* This routine actually unmortgages the property
*/
static void
-unm(prop)
- int prop;
+unm(propnum)
+ int propnum;
{
int price;
- price = board[prop].cost/2;
- board[prop].desc->morg = FALSE;
+ price = board[propnum].cost/2;
+ board[propnum].desc->morg = FALSE;
price += price/10;
printf("That cost you $%d\n",price);
cur_p->money -= price;