Replace tests on packed words with tests on strings.
This commit is contained in:
parent
bcacb84166
commit
b5e8eec80e
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -1137,11 +1137,11 @@ Lclosecheck:
|
||||||
command.wd1 = token_to_packed("CATCH");
|
command.wd1 = token_to_packed("CATCH");
|
||||||
}
|
}
|
||||||
Lookup:
|
Lookup:
|
||||||
if (wordeq(command.wd1, token_to_packed("WEST"))) {
|
if (strncasecmp(command.raw1, "west", sizeof("west")) == 0) {
|
||||||
if (++game.iwest == 10)
|
if (++game.iwest == 10)
|
||||||
rspeak(W_IS_WEST);
|
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)
|
if (++game.igo == 10)
|
||||||
rspeak(GO_UNNEEDED);
|
rspeak(GO_UNNEEDED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue