Improve the tin opener

This commit is contained in:
Pasi Kallinen
2015-12-19 14:44:39 +02:00
parent a5c63af579
commit 43bf9c978d
5 changed files with 33 additions and 12 deletions

View File

@@ -1099,6 +1099,7 @@ register const char *let, *word;
&& (otmp->otyp != HORN_OF_PLENTY || !otmp->dknown
|| !objects[HORN_OF_PLENTY].oc_name_known))
|| (!strcmp(word, "charge") && !is_chargeable(otmp))
|| (!strcmp(word, "open") && otyp != TIN)
|| (!strcmp(word, "call") && !objtyp_is_callable(otyp))
) {
foo--;