cleanup, add manual page
[unix-history] / usr / src / games / monop / trade.c
index 5b198f5..26eb25a 100644 (file)
@@ -1,17 +1,22 @@
 /*
 /*
- * Copyright (c) 1987 Regents of the University of California.
+ * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific prior written permission. This software
- * is provided ``as is'' without express or implied warranty.
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)trade.c    5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)trade.c    5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "monop.ext"
 #endif /* not lint */
 
 # include      "monop.ext"
@@ -210,9 +215,7 @@ resign() {
                  case PRPTY:
                        new_own = board[cur_p->loc].owner;
                        break;
                  case PRPTY:
                        new_own = board[cur_p->loc].owner;
                        break;
-                 case SPEC:
-                 case CC:
-                 case CHANCE:
+                 default:              /* Chance, taxes, etc */
                        new_own = num_play;
                        break;
                }
                        new_own = num_play;
                        break;
                }
@@ -258,7 +261,7 @@ resign() {
                        sqp = op->sqr;
                        sqp->owner = -1;
                        sqp->desc->morg = FALSE;
                        sqp = op->sqr;
                        sqp->owner = -1;
                        sqp->desc->morg = FALSE;
-                       if (op->type == PRPTY) {
+                       if (sqp->type == PRPTY) {
                                isnot_monop(sqp->desc->mon_desc);
                                sqp->desc->houses = 0;
                        }
                                isnot_monop(sqp->desc->mon_desc);
                                sqp->desc->houses = 0;
                        }