ANSIfication; bug report 4.3BSD/bin/223
[unix-history] / usr / src / games / monop / execute.c
index 2fa50cf..6740a03 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[] = "@(#)execute.c  5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)execute.c  5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 # include      "monop.ext"
 #endif /* not lint */
 
 # include      "monop.ext"
@@ -108,10 +113,15 @@ show_move() {
                printf("That is a safe place\n");
                break;
          case CC:
                printf("That is a safe place\n");
                break;
          case CC:
+               cc(); break;
          case CHANCE:
          case CHANCE:
-         case SPEC:
-               (*((int (*)())(sqp->desc)))();
-               break;
+               chance(); break;
+         case INC_TAX:
+               inc_tax(); break;
+         case GOTO_J:
+               goto_jail(); break;
+         case LUX_TAX:
+               lux_tax(); break;
          case PRPTY:
          case RR:
          case UTIL:
          case PRPTY:
          case RR:
          case UTIL: