List Info

Thread: (PR#20855) Starting techs and team play




(PR#20855) Starting techs and team play
user name
2006-09-17 13:02:48
<URL: 
http://bugs.freeciv.org/Ticket/Display.html?id=20855
>

When starting a game with team play enabled (at least two
players play in  
the same team) game exits immediately after pressing a Start
button on the  
assertion:

civserver: techtools.c:277: found_new_tech: Assertion  
`(tech_exists(tech_found) && get_invention(plr,
tech_found) != TECH_KNOWN)  
|| tech_found == (200-2)' failed.

That is because global_init_techs variable in MY
game.ruleset is not empty.
When server sets up players it uses found_new_tech() to give
players their  
starting technologies. But this function propagates
technologies to  
player's team allies. Thus when server want to set up
starting  
technologies for the ally, he already has those
technologies, which makes  
this assertion failed.




[1]

about | contact  Other archives ( Real Estate discussion Medical topics )