Skip to content

Commit

Permalink
Check for 100 fruits *after* checking to see if we can reuse a fruit …
Browse files Browse the repository at this point in the history
…name

that never had any fruits created.
  • Loading branch information
arromdee committed Dec 12, 2011
1 parent 9c1268d commit a0c6e6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a0c6e6e

Please sign in to comment.