From: cohrs Date: Sun, 7 Jul 2002 15:25:23 +0000 (+0000) Subject: eating conduct followup X-Git-Tag: MOVE2GIT~2663 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13598967842d752d0a6a01e28e0c24ab6c0d5ecf;p=nethack eating conduct followup lost the non-EGG case when removing the unnecessary LEATHER, et al, checks. --- diff --git a/src/eat.c b/src/eat.c index 90c99a57e..b54cd5e03 100644 --- 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;