Module Name:    src
Committed By:   dholland
Date:           Sat Aug  6 19:32:59 UTC 2011

Modified Files:
        src/games/hack: config.h hack.u_init.c

Log Message:
Remove the PYRAMID_BUG code. I don't think Pyramids are coming back, nor
do we care if their compiler vomits trying to decrement a bitfield.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/games/hack/config.h
cvs rdiff -u -r1.12 -r1.13 src/games/hack/hack.u_init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/hack/config.h
diff -u src/games/hack/config.h:1.7 src/games/hack/config.h:1.8
--- src/games/hack/config.h:1.7	Wed Apr  2 18:36:33 2003
+++ src/games/hack/config.h	Sat Aug  6 19:32:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: config.h,v 1.7 2003/04/02 18:36:33 jsm Exp $	*/
+/*	$NetBSD: config.h,v 1.8 2011/08/06 19:32:58 dholland Exp $	*/
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -85,7 +85,6 @@
 
 /* #define STUPID */	/* avoid some complicated expressions if
 			   your C compiler chokes on them */
-/* #define PYRAMID_BUG */	/* avoid a bug on the Pyramid */
 /* #define NOWAITINCLUDE */	/* neither <wait.h> nor <sys/wait.h> exists */
 
 #define WIZARD  "bruno"	/* the person allowed to use the -D option */

Index: src/games/hack/hack.u_init.c
diff -u src/games/hack/hack.u_init.c:1.12 src/games/hack/hack.u_init.c:1.13
--- src/games/hack/hack.u_init.c:1.12	Wed Feb  3 15:34:39 2010
+++ src/games/hack/hack.u_init.c	Sat Aug  6 19:32:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: hack.u_init.c,v 1.12 2010/02/03 15:34:39 roy Exp $	*/
+/*	$NetBSD: hack.u_init.c,v 1.13 2011/08/06 19:32:58 dholland Exp $	*/
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.u_init.c,v 1.12 2010/02/03 15:34:39 roy Exp $");
+__RCSID("$NetBSD: hack.u_init.c,v 1.13 2011/08/06 19:32:58 dholland Exp $");
 #endif				/* not lint */
 
 #include <ctype.h>
@@ -377,16 +377,8 @@
 		if (obj->olet == WEAPON_SYM)
 			if (!uwep)
 				setuwep(obj);
-#ifndef PYRAMID_BUG
 		if (--trop->trquan)
 			continue;	/* make a similar object */
-#else
-		if (trop->trquan) {	/* check if zero first */
-			--trop->trquan;
-			if (trop->trquan)
-				continue;	/* make a similar object */
-		}
-#endif	/* PYRAMID_BUG */
 		trop++;
 	}
 }

Reply via email to