projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d71fe8
)
Eliminate unreachable code in lock()
author
Aaron Traas
<aaron@traas.org>
Sun, 2 Jul 2017 16:49:29 +0000
(12:49 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sun, 2 Jul 2017 16:52:17 +0000
(12:52 -0400)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index f2ec65adac01a042d5b8b7283d4e89f9bee2ca4f..ad09b4a254f0b584cdbbdef5124aa53eb91705f0 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-811,8
+811,6
@@
static int lock(token_t verb, token_t obj)
obj = DOOR;
if (AT(GRATE))
obj = GRATE;
- if (obj != 0 && HERE(CHAIN))
- return GO_UNKNOWN;
if (HERE(CHAIN))
obj = CHAIN;
if (obj == 0 || obj == INTRANSITIVE) {