Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] patch: solar plant...

Re: [Freeciv-Dev] patch: solar plant...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv List <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] patch: solar plant...
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Fri, 23 Jul 1999 18:39:55 -0400

Daniel Sjolie (deepone@xxxxxxxxxx) wrote:

> I now know why I want more general packets... :)
> I tried to add fileds to the city struct to display
> more detailed pollution info in the client...
> I found 4-6 places I had to change in the code and
> it still went crazy... I removed that... :p

But this isn't secret information that the client should be able to
learn only from the server.  The formulas are (sort of) clearly exposed
in the source code, after all.  So put the calculation of pollution in
the common directory, and let both the client and the server compute
the value, or any subvalues you wish.  Then the client can display all
the details without ever consulting the server.

Greg Wooledge                    | Distributed.NET
wooledge@xxxxxxxxxxx             | because a CPU is a terrible thing to waste. |

[Prev in Thread] Current Thread [Next in Thread]