Author: cazfi Date: Tue Apr 7 00:45:16 2015 New Revision: 28734 URL: http://svn.gna.org/viewcvs/freeciv?rev=28734&view=rev Log: Do not grant techs to dead players when the tech cost goes below the amount of bulbs they had collected while alive.
See bug #23437 Modified: branches/S2_4/server/techtools.c Modified: branches/S2_4/server/techtools.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_4/server/techtools.c?rev=28734&r1=28733&r2=28734&view=diff ============================================================================== --- branches/S2_4/server/techtools.c (original) +++ branches/S2_4/server/techtools.c Tue Apr 7 00:45:16 2015 @@ -470,6 +470,11 @@ { struct player_research *research = player_research_get(plr); + if (!plr->is_alive) { + /* Dead players do not produce research */ + return FALSE; + } + /* count our research contribution this turn */ plr->server.bulbs_last_turn += bulbs; research->bulbs_researched += bulbs; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits