From b5e8eec80e027b9d2e4e6ca7c4d8c6ebdbfc1570 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Tue, 11 Jul 2017 08:52:50 -0700 Subject: [PATCH] Replace tests on packed words with tests on strings. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index f24c5bc..8f3549e 100644 --- a/main.c +++ b/main.c @@ -1137,11 +1137,11 @@ Lclosecheck: command.wd1 = token_to_packed("CATCH"); } Lookup: - if (wordeq(command.wd1, token_to_packed("WEST"))) { + if (strncasecmp(command.raw1, "west", sizeof("west")) == 0) { if (++game.iwest == 10) rspeak(W_IS_WEST); } - if (wordeq(command.wd1, token_to_packed("GO")) && !wordempty(command.wd2)) { + if (strncasecmp(command.raw1, "go", sizeof("go")) == 0 && !wordempty(command.wd2)) { if (++game.igo == 10) rspeak(GO_UNNEEDED); } -- 2.31.1