"Doppelte Fehlermeldung"
- remove error message from inner function.
This commit is contained in:
Enno Rehling 2008-02-12 18:51:22 +00:00
parent 40898eea55
commit fe9bc734da
2 changed files with 23 additions and 24 deletions

View file

@ -798,7 +798,6 @@ maxbuild(const unit * u, const construction * cons)
int have = get_pooled(u, rtype, GET_DEFAULT, INT_MAX);
int need = required(1, cons->reqsize, cons->materials[c].number);
if (have<need) {
cmistake(u, u->thisorder, 88, MSG_PRODUCE);
return 0;
}
else maximum = min(maximum, have/need);