Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack Remove the PYRAMID_BUG code. I don't think Pyrami...



details:   https://anonhg.NetBSD.org/src/rev/e92c349cd460
branches:  trunk
changeset: 768028:e92c349cd460
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Aug 06 19:32:58 2011 +0000

description:
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.

diffstat:

 games/hack/config.h      |   3 +--
 games/hack/hack.u_init.c |  12 ++----------
 2 files changed, 3 insertions(+), 12 deletions(-)

diffs (52 lines):

diff -r e0c71d32dfdb -r e92c349cd460 games/hack/config.h
--- a/games/hack/config.h       Sat Aug 06 19:23:38 2011 +0000
+++ b/games/hack/config.h       Sat Aug 06 19:32:58 2011 +0000
@@ -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 */
diff -r e0c71d32dfdb -r e92c349cd460 games/hack/hack.u_init.c
--- a/games/hack/hack.u_init.c  Sat Aug 06 19:23:38 2011 +0000
+++ b/games/hack/hack.u_init.c  Sat Aug 06 19:32:58 2011 +0000
@@ -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++;
        }
 }



Home | Main Index | Thread Index | Old Index