]> git.pond.sub.org Git - empserver/commit
Fix mine production resource limit for peffic != 100%
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 21 May 2009 16:57:55 +0000 (18:57 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 21 May 2009 16:57:55 +0000 (18:57 +0200)
commite0a2b4ca4c6ba30df86ae7f0bc1c0b6f8cc623c6
tree82d7d704f19b236260597e548143f42417dc77b6
parenta61e673a075e678f0e992546248037e52ff05ab3
Fix mine production resource limit for peffic != 100%

With etu_per_update large and resource depletion quick, a sector can
produce more work than is required to fully deplete a mine.  In that
case, produce() and prod() limit production to what is actually in the
ground.  Except produce() got it wrong for sector types with
production efficiency other than 100%.

This affects mountains in the stock game, but only with impractically
large etu_per_update.
src/lib/update/produce.c