forked from github/server
Materialpool bei Eisengolems (Nachbesserung) genau falsch herum gefixt, das.
This commit is contained in:
parent
21d2bb231d
commit
1949fd666a
|
@ -186,7 +186,7 @@ new_get_pooled(const unit * u, const resource_type * rtype, int mode)
|
|||
int have = new_get_resource(u, rtype);
|
||||
|
||||
if ((u->race->ec_flags & GETITEM) == 0) {
|
||||
mode &= ~(GET_SLACK|GET_RESERVE);
|
||||
mode &= (GET_SLACK|GET_RESERVE);
|
||||
}
|
||||
|
||||
if ((mode & GET_SLACK) && (mode & GET_RESERVE)) use = have;
|
||||
|
@ -229,7 +229,7 @@ new_use_pooled(unit * u, const resource_type * rtype, int mode, int count)
|
|||
int n = 0, have = new_get_resource(u, rtype);
|
||||
|
||||
if ((u->race->ec_flags & GETITEM) == 0) {
|
||||
mode &= ~(GET_SLACK|GET_RESERVE);
|
||||
mode &= (GET_SLACK|GET_RESERVE);
|
||||
}
|
||||
|
||||
if ((mode & GET_SLACK) && (mode & GET_RESERVE)) {
|
||||
|
|
Loading…
Reference in New Issue