Check for 100 fruits *after* checking to see if we can reuse a fruit name
that never had any fruits created.
This commit is contained in:
+4
-5
@@ -1696,17 +1696,16 @@ boolean tinitial, tfrom_file;
|
|||||||
break;
|
break;
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
if (num >= 100) {
|
|
||||||
pline("Doing that so many times isn't very fruitful.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!flags.made_fruit) {
|
if (!flags.made_fruit) {
|
||||||
for(forig=ffruit; forig; forig=forig->nextf) {
|
for(forig=ffruit; forig; forig=forig->nextf) {
|
||||||
if (!strcmp(pl_fruit, forig->fname)) {
|
if (!strcmp(pl_fruit, forig->fname)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (!forig && num >= 100) {
|
||||||
|
pline("Doing that so many times isn't very fruitful.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
goodfruit:
|
goodfruit:
|
||||||
|
|||||||
Reference in New Issue
Block a user