summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authorchuck <chuck@NetBSD.org>2002-08-22 01:49:34 +0000
committerchuck <chuck@NetBSD.org>2002-08-22 01:49:34 +0000
commit0cc28f7cdb9eb418c814411df652f89e5da8009b (patch)
tree6d807ccc67ec504a3f6c88d5112106f8acd7330c /hack
parent139a741cdeedd23786cb2d0758e454efc4c6d4ea (diff)
downloadbsdgames-darwin-0cc28f7cdb9eb418c814411df652f89e5da8009b.tar.gz
bsdgames-darwin-0cc28f7cdb9eb418c814411df652f89e5da8009b.tar.zst
bsdgames-darwin-0cc28f7cdb9eb418c814411df652f89e5da8009b.zip
shops are only supposed to have 1 door (as per standard hack 1.0.3).
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.
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.mkshop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.mkshop.c b/hack/hack.mkshop.c
index 8ec09f9c..a73dce78 100644
--- a/hack/hack.mkshop.c
+++ b/hack/hack.mkshop.c
@@ -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;
}