I haven't been active in the past decade, but here's a small patch. Main

branch only.  This adds a check when setting a new fruit so that if no fruits
have been created since the last time the option has been set, the current
fruit is overwritten.  Result: the user cannot repeatedly set the fruit
option and overflow the maximum fruit number.
This commit is contained in:
arromdee
2011-12-11 18:11:29 +00:00
parent 77593aa294
commit 2a2e2b299e
6 changed files with 53 additions and 6 deletions

View File

@@ -680,6 +680,7 @@ boolean artif;
break;
case SLIME_MOLD:
otmp->spe = context.current_fruit;
flags.made_fruit = TRUE;
break;
case KELP_FROND:
otmp->quan = (long) rnd(2);