From: arromdee Date: Mon, 12 Dec 2011 02:07:43 +0000 (+0000) Subject: Check for 100 fruits *after* checking to see if we can reuse a fruit name X-Git-Tag: MOVE2GIT~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0c6e6ef3f49d994048d443af687e3de3c178284;p=nethack Check for 100 fruits *after* checking to see if we can reuse a fruit name that never had any fruits created. --- diff --git a/src/options.c b/src/options.c index d806fa1d7..ac5c9517e 100644 --- a/src/options.c +++ b/src/options.c @@ -1696,17 +1696,16 @@ boolean tinitial, tfrom_file; break; num++; } - if (num >= 100) { - pline("Doing that so many times isn't very fruitful."); - return; - } if (!flags.made_fruit) { for(forig=ffruit; forig; forig=forig->nextf) { if (!strcmp(pl_fruit, forig->fname)) { break; } } - + } + if (!forig && num >= 100) { + pline("Doing that so many times isn't very fruitful."); + return; } } goodfruit: