]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
shops are only supposed to have 1 door (as per standard hack 1.0.3).
authorchuck <chuck@NetBSD.org>
Thu, 22 Aug 2002 01:49:34 +0000 (01:49 +0000)
committerchuck <chuck@NetBSD.org>
Thu, 22 Aug 2002 01:49:34 +0000 (01:49 +0000)
for some reason, the version of 1.0.3 that was in the 4.4 lite tree
was modified to allow shops with two doors -- this violates the spirit
of the game.   with this diff, we revert back to classic 1.0.3 behavior.

hack/hack.mkshop.c

index 8ec09f9c7d772a2ffed8922d90dcc50ba8bdccca..a73dce78e00246ef5639aa2ca78c872a9d474985 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.mkshop.c,v 1.6 2001/03/25 20:44:01 jsm Exp $      */
+/*     $NetBSD: hack.mkshop.c,v 1.7 2002/08/22 01:49:34 chuck Exp $    */
 
 /*
  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -6,7 +6,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.mkshop.c,v 1.6 2001/03/25 20:44:01 jsm Exp $");
+__RCSID("$NetBSD: hack.mkshop.c,v 1.7 2002/08/22 01:49:34 chuck Exp $");
 #endif                         /* not lint */
 
 #include <stdlib.h>
@@ -70,7 +70,7 @@ gottype:
 #ifdef WIZARD
                    (wizard && getenv("SHOPTYPE") && sroom->doorct != 0) ||
 #endif /* WIZARD */
-                   (sroom->doorct <= 2 && sroom->doorct > 0))
+                   sroom->doorct == 1)
                        break;
        }