]> granicus.if.org Git - nethack/commitdiff
eating conduct followup
authorcohrs <cohrs>
Sun, 7 Jul 2002 15:25:23 +0000 (15:25 +0000)
committercohrs <cohrs>
Sun, 7 Jul 2002 15:25:23 +0000 (15:25 +0000)
lost the non-EGG case when removing the unnecessary LEATHER, et al, checks.

src/eat.c

index 90c99a57eb5fe6f01d1550b799f33a1e5294931c..b54cd5e03f0a68b7e5e8926026b53a7ce8ec577c 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -1938,8 +1938,9 @@ doeat()           /* generic "eat" command funtion (see cmd.c) */
             * all handled in the != FOOD_CLASS case, above */
            switch (objects[otmp->otyp].oc_material) {
            case FLESH:
-               if (otmp->otyp == EGG) {
-                   u.uconduct.unvegan++;
+               u.uconduct.unvegan++;
+               if (otmp->otyp != EGG) {
+                   violated_vegetarian();
                }
                break;