From: Aaron Traas Date: Sun, 2 Jul 2017 16:49:29 +0000 (-0400) Subject: Eliminate unreachable code in lock() X-Git-Tag: takebird~105 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=dd50e7c9d3649283835c6ab3419ad251272036c3;hp=2d71fe813793334a0e2c46d8b942dba9a5aff208 Eliminate unreachable code in lock() --- diff --git a/actions.c b/actions.c index f2ec65a..ad09b4a 100644 --- 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) {