Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] (PR#12853) AI tech handicap is ignored by the client
Home

[Freeciv-Dev] (PR#12853) AI tech handicap is ignored by the client

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#12853) AI tech handicap is ignored by the client
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Wed, 20 Apr 2005 03:35:29 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12853 >

> [jdorje - Wed Apr 20 02:25:22 2005]:
 
>   /* FIXME: the is_server is a kludge to unbreak CVS. GB promises
>    * to fix correctly a.s.a.p. 2003/5/18 -mck */
>   if (is_server && pplayer->ai.control) {
>     assert(pplayer->ai.science_cost > 0);
>     cost = (cost * pplayer->ai.science_cost) / 100;
>   }
> 
> the problem (as the FIXME says) is this is only checked by the server.
> An is_server check is ugly and this is noe example.  A client could be
> connecting watching this novice AI but then they'd see the wrong tech
> data.  I think.
> 
> Mateusz, you fixed a related bug.  What do you know about this one?
> 
> -jason
> 
I removed that code. Now when the client knows the handicap it doesn't 
need this hack.
See 12661.
--
mateusz 
 




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