From: Eric S. Raymond Date: Thu, 3 Aug 2017 19:51:39 +0000 (-0400) Subject: Remove duplicative phase code. X-Git-Tag: 1.4~1 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=cf92b9d9d624d983277bd32d8d59de0152d97721 Remove duplicative phase code. --- diff --git a/actions.c b/actions.c index b63f795..ec25552 100644 --- a/actions.c +++ b/actions.c @@ -1575,7 +1575,7 @@ int action(command_t command) case unknown: /* Unknown verb, couldn't deduce object - might need hint */ sspeak(WHAT_DO, command.word[0].raw); - return GO_CHECKHINT; + return GO_CLEAROBJ; default: // LCOV_EXCL_LINE BUG(SPEECHPART_NOT_TRANSITIVE_OR_INTRANSITIVE_OR_UNKNOWN); // LCOV_EXCL_LINE } diff --git a/advent.h b/advent.h index f5fe672..4491b42 100644 --- a/advent.h +++ b/advent.h @@ -100,7 +100,6 @@ enum phase_codes { GO_MOVE, GO_TOP, GO_CLEAROBJ, - GO_CHECKHINT, GO_WORD2, GO_UNKNOWN, GO_DWARFWAKE, diff --git a/main.c b/main.c index f2e1075..41bbe95 100644 --- a/main.c +++ b/main.c @@ -1199,7 +1199,6 @@ Lookup: sspeak(DO_WHAT, command.word[0].raw); command.obj = 0; // Fallthrough - case GO_CHECKHINT: // Fallthrough case GO_CLEAROBJ: goto Lclearobj; case GO_DWARFWAKE: