]> git.pond.sub.org Git - empserver/commit
(get_materials): Redesign.
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 10 Jan 2007 07:15:45 +0000 (07:15 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 10 Jan 2007 07:15:45 +0000 (07:15 +0000)
commitac9cdf5bb930d89d8d2478841508c0a038697efc
tree6b39f26e2bb60dbc2df9d9d2d368fa0d953941f5
parent63bdc89835765a6163fe06e194fb3fbcc5dce083
(get_materials): Redesign.
(shiprepair, planerepair, landrepair): Use it.  Behavioral change:
ship repairs outside harbors and plane repairs by a carrier can use
fewer materials.  Before, such repairs consumed each required
commodity as far as available.  Now, they consume the same fraction of
the real cost of each commodity, i.e. commodity use is limited by the
most scarce commodity.  Neither old nor new behavior make much sense,
but the new code is simpler.
include/budg.h
src/lib/update/land.c
src/lib/update/material.c
src/lib/update/plane.c
src/lib/update/ship.c