[Freeciv-Dev] (PR#13360) Choose random tech and future tech
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#13360) Choose random tech and future tech |
From: |
"Mateusz Stefek" <mstefek@xxxxxxxxx> |
Date: |
Tue, 28 Jun 2005 10:42:42 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13360 >
> [jdorje - Tue Jun 28 17:31:54 2005]:
>
> Mateusz Stefek wrote:
> > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=13360 >
> >
> > choose_random_tech can't set A_FUTURE and this leads to many bugs.
> > For example: http://pubserver.freeciv.org/games/443089
>
> Isn't 443089 also caused by the same bug where choose_tech completes
> research (13342)?
>
No
443089 is caused by the following bug in found_new_tech():
if (plr->ai.control || !was_discovery) {
choose_random_tech(plr);
/*
Here plr->research.researching was == tech_found
because choose_random_tech(plr) couldn't change the research
*/
} else if (is_future_tech(tech_found)) {
/* Continue researching future tech. */
research->researching = A_FUTURE;
} else {
research->researching = A_UNSET;
}
--
mateusz
|
|