]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/trade.c
One more (hopefully the last) whitespace fix.
[bsdgames-darwin.git] / monop / trade.c
index ff60ca0a69d8cc7a22a8651ab1c0549d51531099..1d210a43fad628ee61889ee05d1c1d6517ab6d4b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: trade.c,v 1.9 2004/01/27 20:30:30 jsm Exp $    */
+/*     $NetBSD: trade.c,v 1.12 2008/02/19 10:48:47 dholland Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)trade.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: trade.c,v 1.9 2004/01/27 20:30:30 jsm Exp $");
+__RCSID("$NetBSD: trade.c,v 1.12 2008/02/19 10:48:47 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -103,11 +103,11 @@ over:
  */
 static void
 get_list(struct_no, play_no)
-       int struct_no, play_no; 
+       int struct_no, play_no;
 {
        int sn, pn;
        PLAY *pp;
-       int numin, prop, num_prp;
+       int numin, propnum, num_prp;
        OWN *op;
        TRADE *tp;
 
@@ -121,16 +121,16 @@ get_list(struct_no, play_no)
        if (pp->own_list) {
                numin = set_list(pp->own_list);
                for (num_prp = numin; num_prp; ) {
-                       prop = getinp("Which property do you wish to trade? ",
+                       propnum=getinp("Which property do you wish to trade? ",
                            plist);
-                       if (prop == numin)
+                       if (propnum == numin)
                                break;
-                       else if (used[prop])
+                       else if (used[propnum])
                                printf("You've already allocated that.\n");
                        else {
                                num_prp--;
-                               used[prop] = TRUE;
-                               for (op = pp->own_list; prop--; op = op->next)
+                               used[propnum] = TRUE;
+                               for (op = pp->own_list; propnum--; op = op->next)
                                        continue;
                                add_list(pn, &(tp->prop_list), sqnum(op->sqr));
                        }
@@ -156,7 +156,7 @@ once_more:
  */
 static int
 set_list(the_list)
-       OWN *the_list; 
+       OWN *the_list;
 {
        int i;
        OWN *op;
@@ -216,7 +216,7 @@ do_trade()
  */
 static void
 move_em(from, to)
-       TRADE *from, *to; 
+       TRADE *from, *to;
 {
        PLAY *pl_fr, *pl_to;
        OWN *op;
@@ -310,7 +310,7 @@ resign()
        for (i = player; i < num_play; i++) {
                name_list[i] = name_list[i+1];
                if (i + 1 < num_play)
-                       play[i] =  play[i+1];
+                       play[i] = play[i+1];
        }
        name_list[num_play--] = 0;
        for (i = 0; i < N_SQRS; i++)