summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2003-05-19 06:36:31 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2003-05-19 06:36:31 +0000
commit140d5b870a399b14d5cc1bafc5baa38e8720ebcb (patch)
tree11691a996ef16fdeee662c879dfa8e9ea2e96253
parentd24f4b7e5e29484d0a7240bef0f57481a554ecfd (diff)
From NetBSD: as per standard hack 1.0.3, shops should have only one door.
Unclear why the 4.4-lite tree was modified.
-rw-r--r--games/hack/hack.mkshop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/hack/hack.mkshop.c b/games/hack/hack.mkshop.c
index bd110b39dd0..58760af88e8 100644
--- a/games/hack/hack.mkshop.c
+++ b/games/hack/hack.mkshop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.mkshop.c,v 1.6 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.mkshop.c,v 1.7 2003/05/19 06:36:30 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,7 +62,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: hack.mkshop.c,v 1.6 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.mkshop.c,v 1.7 2003/05/19 06:36:30 pjanzen Exp $";
#endif /* not lint */
#include <stdlib.h>
@@ -132,7 +132,8 @@ gottype:
#ifdef WIZARD
(wizard && getenv("SHOPTYPE") && sroom->doorct != 0) ||
#endif /* WIZARD */
- (sroom->doorct <= 2 && sroom->doorct > 0)) break;
+ sroom->doorct == 1)
+ break;
}
if(i < 0) { /* shoptype not yet determined */