From: Raimar F. <hawk@A315-2b.WH8.TU-Dresden.De> - 2000-09-28 14:27:59
|
On Mon, Sep 25, 2000 at 05:03:22PM +0200, Raimar Falke wrote: > On Mon, Sep 25, 2000 at 10:32:33PM +0800, Wong TM (Huang Deming) wrote: > > > > Changes: > > > > * Ulrich have made a lot of changes to restructure the data structure: > > - .......wait till I read through the mail. > > I think you made the inclusion a bit to fast. The work of Ulrich has made > aware some questions wrt Score. We now think we how to do it the "right way > [tm]" so wait for a final version which should come in the next days. As promised here is the updated version. It is the result of collaboration between Ulrich and me. We came to the conclusion that a second loop over all lines is unnecessary. This also kills the huge "String lines[];" thing. A remaining problem are "extra player" (player which aren't declared in the header). The current solution is to create an array which is big enough to hold every number of players. Fortunate freeciv is currently limited to 32 in this respect. Another remaining problem is the current implemenation of the relative modus of PolyLineGroup. It may be possible to let extra players start somewhere in the graph (see line 380 in Graph) however this doesn't work in the relative modus. So unknown values are currently set to 0. Raimar -- "Life is too short for reboots." |