Author: cazfi
Date: Tue Apr  7 00:45:08 2015
New Revision: 28733

URL: http://svn.gna.org/viewcvs/freeciv?rev=28733&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_5/server/techtools.c

Modified: branches/S2_5/server/techtools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/techtools.c?rev=28733&r1=28732&r2=28733&view=diff
==============================================================================
--- branches/S2_5/server/techtools.c    (original)
+++ branches/S2_5/server/techtools.c    Tue Apr  7 00:45:08 2015
@@ -505,6 +505,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

Reply via email to