summaryrefslogtreecommitdiffstats
path: root/battlestar/extern.h
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-09-08 17:22:01 +0000
committerjsm <jsm@NetBSD.org>2000-09-08 17:22:01 +0000
commite78113b43d320fbf5b1a2323cb902663188952d0 (patch)
treeeb7044ea6a1803cfea9d3ba779dbeae434c9cba3 /battlestar/extern.h
parentbed19f972cb4bcc628ec73e35c8e9f9e6b8c6341 (diff)
downloadbsdgames-darwin-e78113b43d320fbf5b1a2323cb902663188952d0.tar.gz
bsdgames-darwin-e78113b43d320fbf5b1a2323cb902663188952d0.tar.zst
bsdgames-darwin-e78113b43d320fbf5b1a2323cb902663188952d0.zip
Make code clearer; add a macro ROOMDESC for the number of times a room
should be visited for the short description only to be used, and don't increment beenthere[position] beyond this value. From OpenBSD.
Diffstat (limited to 'battlestar/extern.h')
-rw-r--r--battlestar/extern.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/battlestar/extern.h b/battlestar/extern.h
index 7ffec2c9..3e28683f 100644
--- a/battlestar/extern.h
+++ b/battlestar/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.16 2000/07/23 23:57:23 mycroft Exp $ */
+/* $NetBSD: extern.h,v 1.17 2000/09/08 17:22:02 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -206,6 +206,9 @@
#define DUG 5
#define NUMOFNOTES 6
+/* Number of times room description shown. */
+#define ROOMDESC 3
+
/* fundamental constants */
#define NUMOFROOMS 275
#define NUMOFWORDS ((NUMOFOBJECTS + BITS - 1) / BITS)