forked from github/server
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:
parent
4f5a02a1a3
commit
663d947b2a
1 changed files with 3 additions and 1 deletions
|
@ -522,7 +522,9 @@ int build(unit * u, const construction * ctype, int completed, int want)
|
||||||
|
|
||||||
if (basesk < type->minskill) {
|
if (basesk < type->minskill) {
|
||||||
if (made == 0)
|
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 */
|
/* n = maximum buildable size */
|
||||||
|
|
Loading…
Reference in a new issue