New behaviour in case of low skill during building

Insufficient skill after hitting the next improvement stage is now
handled by leaving the for-loop and skipping to after-build-processing.
This commit is contained in:
Philipp Dreher 2015-11-06 21:04:35 +01:00
parent 4f5a02a1a3
commit 663d947b2a
1 changed files with 3 additions and 1 deletions

View File

@ -522,7 +522,9 @@ int build(unit * u, const construction * ctype, int completed, int want)
if (basesk < type->minskill) {
if (made == 0)
return ELOWSKILL; /* not good enough to go on */
return ELOWSKILL;
else
break; /* not good enough to go on */
}
/* n = maximum buildable size */