(produce): The reported amount produced (returned through last

parameter) did not reflect production cut for ITEM_MAX.  Broken in
3.0.14 or so.  Reported by Stefan Hauser.
This commit is contained in:
Markus Armbruster 2006-08-02 17:58:20 +00:00
parent f246f86542
commit 18417fdef6

View file

@ -126,12 +126,12 @@ produce(struct natstr *np, struct sctstr *sp, short *vec, int work,
* material_consume / actual);
if (material_consume < 0)
material_consume = 0;
vec[item] = ITEM_MAX;
actual = ITEM_MAX - vec[item];
if (sp->sct_own && !player->simulation)
wu(0, sp->sct_own,
"%s production backlog in %s\n",
product->p_name, ownxy(sp));
} else
}
vec[item] += actual;
}
/*