Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!elsic!disuns2!ltisun7!warkent From: warkent@ltisun7.epfl.ch (Ken Warkentyne) Newsgroups: comp.sources.games.bugs Subject: xconq5.1 fuel transfer "feature" fix. Message-ID: <313@disuns2.epfl.ch> Date: 29 Aug 90 13:07:36 GMT Sender: news@disuns2.epfl.ch Lines: 20 Some recent postings mention the problem with fuel transfer. The problem is easy to fix. This applies to v5.1 but may also work on the unofficial "5.3" that people have been talking about. Replace can_satisfy_need in phases.c with the following: ------------------------ cut here ------------------------------- /* This estimates what can be spared. Note that total transfer of requested */ /* amount is not a good idea, since the supplies might be essential to the */ /* unit that has them first. If the request leaves us with at least half */ /* of maximum capacity or the request is less than 1/5 of our supply, then */ /* we can spare it. */ can_satisfy_need(unit, r, need) Unit *unit; int r, need; { return ((unit->supply[r]-need) >= (utypes[unit->type].storage[r]/2)) || (need < (unit->supply[r] / 5)); }